Key idea
A build turns your source code into a container image, which ComputeSphere then deploys exactly like an image you built yourself. You choose how: with your own Dockerfile, or with a runtime build that follows your language's standard recipe.
In the console, the Build method switch calls these Dockerfile and Managed. Managed is the runtime build.
Dockerfile build
A Dockerfile is a text file of instructions for building an image. It starts from a base image, a ready-made starting point such as python:3.12-slim, then copies in your code and installs what it needs. ComputeSphere runs it the same way docker build does on your machine.
Choose it when:
- you already have a Dockerfile that works;
- you need system packages, a particular base image, or a multi-stage build (one stage compiles, a smaller final stage keeps only the result);
- you want the deployed image to match the one you test locally.
The Containers path teaches how to write a small, safe Dockerfile.
Runtime build (Managed)
No Dockerfile? Pick your language and version. ComputeSphere installs your dependencies from your project's usual files (package.json, requirements.txt, go.mod and so on), runs a build, and sets a start command. You can replace the build and start commands when your app doesn't follow the defaults.
Choose it when your app follows the normal conventions for its language and you'd rather not maintain a Dockerfile.
Which languages have runtime builds
- Node.js: Express, Next.js, NestJS
- Bun: Bun servers and APIs
- Python: Django, FastAPI, Flask
- Ruby: Rails, Sinatra
- Go: any Go HTTP server
- Rust: Axum, Actix
- Elixir: Phoenix
From repository to Running
From repository to Running
Every line a build prints goes to its build log. If the build fails, nothing is deployed and your previous version keeps serving. The next lesson shows how to read that log.
Check yourself