wtree Cloud

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 typeUse it whenNotes
NixpacksPrototyping. Default.Tuned with NIXPACKS_* variables or nixpacks.toml.
RailpackYou want Nixpacks' successor.Tuned with RAILPACK_* variables. Pin a version.
DockerfileYou need full control.Path, context and stage fields.
Heroku BuildpacksYou migrate from Heroku.Default version 24.
Paketo BuildpacksYou want cloud-native buildpacks.
StaticPlain HTML or built assets.Served by Nginx.

For production, follow Production checklist.

Nixpacks

Set these in Settings › Environment variables.

VariableWhat it does
NIXPACKS_INSTALL_CMDOverride the install command
NIXPACKS_BUILD_CMDOverride the build command
NIXPACKS_START_CMDOverride the container start command
NIXPACKS_PKGSAdd Nix packages
NIXPACKS_APT_PKGSAdd Apt packages, comma delimited
NIXPACKS_LIBSAdd Nix libraries
NIXPACKS_INSTALL_CACHE_DIRSCache extra directories in the install phase
NIXPACKS_BUILD_CACHE_DIRSCache extra directories in the build phase
NIXPACKS_NO_CACHEDisable build caching
NIXPACKS_CONFIG_FILEPath of the Nixpacks config file, relative to the app root
NIXPACKS_DEBIANUse 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.

VariableWhat it does
RAILPACK_BUILD_CMDBuild command. Overrides provider commands.
RAILPACK_START_CMDContainer start command
RAILPACK_PACKAGESExtra Mise packages as pkg@version. Latest if no version.
RAILPACK_BUILD_APT_PACKAGESApt packages installed during build
RAILPACK_DEPLOY_APT_PACKAGESApt 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

FieldWhat it does
Dockerfile (required)Path to the Dockerfile, for example Dockerfile
Docker context pathBuild context, for example . for the repository root. See build context.
Docker build stageTarget stage of a multi-stage build, for example builder

This build type adds two fields to Settings › Environment variables:

  • Build-time arguments: ARG values 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.

On this page