From c0bbe3b70c45492f6752b6f6a1627bb8c8737a41 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 5 Mar 2025 00:59:57 -0600 Subject: [PATCH] docs: add Railpack build type documentation --- .../docs/core/applications/build-type.mdx | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/docs/core/applications/build-type.mdx b/apps/docs/content/docs/core/applications/build-type.mdx index 8a05b21..6f72fa4 100644 --- a/apps/docs/content/docs/core/applications/build-type.mdx +++ b/apps/docs/content/docs/core/applications/build-type.mdx @@ -13,8 +13,6 @@ Dokploy offers three distinct build types for deploying applications, each suite This is the default build type in Dokploy. When you select Nixpacks, Dokploy builds your application as a Nixpack, which is optimized for ease of use and efficiency. - - Nixpacks expose multiples variables to be configured via environment variables. All of these variables are prefixed with `NIXPACKS_`, you can define them in the `Environment Variables` tab. | Variable | Description | @@ -44,6 +42,24 @@ Astro applications after you build it usually create a `dist` directory, so you copy all the files in the `dist` directory to the root of your application, and will use a NGINX Optimized Dockerfile to run your application. +### Railpack (NEW) + +Railpack is a new build type optimized and is the successor of Nixpacks. + +Railpack exposes multiple Build Variables, you can define them in the `Environment Variables` tab. + +| Name | Description | +| :-------------------- | :--------------------------------------------------------------------------------------------------------- | +| `BUILD_CMD` | Set the command to run for the build step. This overwrites any commands that come from providers | +| `START_CMD` | Set the command to run when the container starts | +| `PACKAGES` | Install additional Mise packages. In the format `pkg@version`. The latest version is used if not provided. | +| `BUILD_APT_PACKAGES` | Install additional Apt packages during build | +| `DEPLOY_APT_PACKAGES` | Install additional Apt packages in the final image | + +you can read more about Railpack [here](https://railpack.com/config/environment-variables). + +Railpack supports Nodejs, Python, Go, PHP, Go, StaticFile, Shell Scripts. + ### Dockerfile If your project includes a Dockerfile, you can specify its path. Dokploy will use this Dockerfile to build your application directly, giving you full control over the build environment and dependencies