Build types
Pick how wtree Cloud turns your code into an image, and tune each builder with its variables and fields.
Set the build type in Settings › Source and build. There are six.
| Build type | Use it when | Notes |
|---|---|---|
| Nixpacks | Prototyping. Default. | Tuned with NIXPACKS_* variables or nixpacks.toml. |
| Railpack | You want Nixpacks' successor. | Tuned with RAILPACK_* variables. Pin a version. |
| Dockerfile | You need full control. | Path, context and stage fields. |
| Heroku Buildpacks | You migrate from Heroku. | Default version 24. |
| Paketo Buildpacks | You want cloud-native buildpacks. | |
| Static | Plain HTML or built assets. | Served by Nginx. |
For production, follow Production checklist.
Nixpacks
Set these in Settings › Environment variables.
| Variable | What it does |
|---|---|
NIXPACKS_INSTALL_CMD | Override the install command |
NIXPACKS_BUILD_CMD | Override the build command |
NIXPACKS_START_CMD | Override the container start command |
NIXPACKS_PKGS | Add Nix packages |
NIXPACKS_APT_PKGS | Add Apt packages, comma delimited |
NIXPACKS_LIBS | Add Nix libraries |
NIXPACKS_INSTALL_CACHE_DIRS | Cache extra directories in the install phase |
NIXPACKS_BUILD_CACHE_DIRS | Cache extra directories in the build phase |
NIXPACKS_NO_CACHE | Disable build caching |
NIXPACKS_CONFIG_FILE | Path of the Nixpacks config file, relative to the app root |
NIXPACKS_DEBIAN | Use a Debian base image, for OpenSSL 1.1 |
For finer control, add a nixpacks.toml at the app root. Nixpacks supports monorepos such as Nx, Turborepo and Moon; see the Node provider notes.
Publish directory
Nixpacks has a static builder. Set Publish Directory to the build output, for example dist for Astro. wtree Cloud copies that directory's files to the app root and serves them with an Nginx-optimised Dockerfile.
Railpack
Railpack supports Node.js, Python, Go, PHP, static files and shell scripts. Set variables in Settings › Environment variables. See the Railpack variable reference.
| Variable | What it does |
|---|---|
RAILPACK_BUILD_CMD | Build command. Overrides provider commands. |
RAILPACK_START_CMD | Container start command |
RAILPACK_PACKAGES | Extra Mise packages as pkg@version. Latest if no version. |
RAILPACK_BUILD_APT_PACKAGES | Apt packages installed during build |
RAILPACK_DEPLOY_APT_PACKAGES | Apt packages installed in the final image |
To pin or change the version, enter it in Railpack Version, for example 0.15.4. wtree Cloud downloads that version for builds.
An invalid version fails the build with an error. Use a tag from the Railpack releases.
Dockerfile
| Field | What it does |
|---|---|
| Dockerfile (required) | Path to the Dockerfile, for example Dockerfile |
| Docker context path | Build context, for example . for the repository root. See build context. |
| Docker build stage | Target stage of a multi-stage build, for example builder |
This build type adds two fields to Settings › Environment variables:
- Build-time arguments:
ARGvalues passed to the Dockerfile, such as versions or feature flags. - Build-time secrets: build secrets for tokens, passwords or SSH keys. They do not end up in the image or its history.
Build arguments and environment variables persist in the final image. Pass secrets as build-time secrets.
Buildpacks
- Heroku: compatible with Heroku apps. Optionally set the Heroku version; the default is 24.
- Paketo: cloud-native buildpacks.
Static
Serves static files with Nginx. wtree Cloud copies everything from the Root directory to /usr/share/nginx/html and builds an Nginx-optimised Dockerfile.
Use port 80 when you create the domain.
