Skip to content

Environment Variables

Some parts of the build can be configured with environment variables. These are often prefixed with RAILPACK_.

Build Configuration

NameDescription
RAILPACK_BUILD_CMDSet the command to run for the build step. This overwrites any commands that come from providers
RAILPACK_INSTALL_CMDSet the command to run for the install step. This overwrites any commands that come from providers. All files are copied to the root of the project before running the command.
RAILPACK_START_CMDSet the command to run when the container starts
RAILPACK_PACKAGESInstall additional Mise packages. In the format pkg@version. The latest version is used if not provided.
RAILPACK_BUILD_APT_PACKAGESInstall additional Apt packages during build
RAILPACK_DEPLOY_APT_PACKAGESInstall additional Apt packages in the final image

To configure more parts of the build, it is recommended to use a config file.

Global Options

These environment variables affect the behavior of Railpack:

NameDescription
FORCE_COLORForce colored output even when not in a TTY