How builds work
A build turns the code in your GitHub repo into a ready-to-run app and starts it on your server. This page explains each step and what you see.
Clone
Dublyo copies your code for the build. The copy is deleted afterwards.
Detect
Dublyo looks for a Dockerfile, or works out your app type
Build and push
The built app is kept in a private registry
Deploy
Your app starts on your server
How your app is built
A Dockerfile is a small recipe file that says how to build and start an app. If your repo has one, Dublyo uses it. The deploy form then shows Ready to deploy and the place where the file was found.
If there is no Dockerfile, an automatic builder detects your app type and builds it. The form shows We'll build it for you. If your project needs newer tools than that builder has, a second builder is tried automatically.
Dublyo builds Node.js, Next.js, NestJS, React/Vite, Python (Django, Flask), Go, PHP/Laravel, static sites, and any app with a Dockerfile.
The port rule
A port is the "door number" your app listens on. Dublyo gives your app a variable called PORT, 3000 by default. Your app must listen on it.
If more than one setting names a port, this order decides:
- The app's Container port setting
- A
PORTvariable you set. The Port (optional) field in the deploy form sets this for you. - The
EXPOSEline in your Dockerfile - 3000
Environment variables
These are settings and secrets your app reads, like API keys. You add them under Environment Variables in the deploy form.
They are available while your app is built and while it runs. They are stored encrypted.
Queue and time limit
Up to three builds run at once. If yours is waiting, the build page shows Queued — next in line or Queued — position N in line.
A build can take up to 10 minutes. The build log is shown live.
The build page
The top of the page shows your repo, branch and status. The status moves through these steps:
The build page: five steps and the live log.
- Queued: waiting for a free slot
- Cloning Repository: copying your code
- Detecting Stack: working out how to build it
- Building Image: building your app
- Pushing to Registry: storing the built app
- Deploying: starting it on your server
- Completed, Failed or Cancelled: the result
Below that you see the Build Logs, with an Auto-scroll switch.
Buttons
- Cancel Build: shown while a build runs. You are asked to confirm, because the deployment will not complete. Choose Keep Building to carry on.
- Try Again: shown when a build failed. It takes you back to GitHub Deploy with the same repo and branch picked.
- View App and Deploy Another: shown when the build finished and you see Your app is deployed!
package.json, a Procfile, or a Dockerfile, then deploy again.
After deploy: the health check
When the build is done, Dublyo checks that your app answers. You see App is answering, or one of these warnings:
After a deploy, the Activity tab shows the health check result.
- "not answering on port N": your app is not listening on the expected port. Check the port rule above.
- "keeps stopping right after it starts": open the Logs tab to see why.
For these and other errors in plain words, see What this error means.
Getting a Dockerfile
Without a Dockerfile, Dublyo uses its automatic builder at no extra charge. If you want a Dockerfile, for example because your app would not build, you can get one in two ways. Both are on the Dockerize Your App page, linked from the deploy form as Use our Dockerize tool.
The Dockerize page.
Self-Service (Free)
You run Dublyo's open-source Dockerizer tool on your own computer with your own AI API key. The tool runs on your computer and sends your code to the AI provider whose key you use. The page shows the commands to copy:
- Step 1: Install Dockerizer
- Step 2: Generate Docker Configuration
- Step 3: Deploy Your App: commit the new Dockerfile to your repo, then go back to GitHub Deploy and pick your repo
AI Dockerfile writer (paid)
This is the second tab, Dublyo Dockerize. It is optional and costs 15 credits for a public repo or 20 credits for a private one.
- Give Dublyo permission to write to your repos: Grant Public Access or Grant Full Access (public and private)
- Select your repository and branch
- Check the cost and your balance, then click Dockerize for N Credits
The Dockerfile is pushed to your repository. It is used automatically when you deploy that repo. Click Deploy Now to continue.
New here? See Your first deploy.
Need Help?
Can't find what you're looking for? Check the full documentation or reach out.