railpack

Configure and troubleshoot Railpack builds, with emphasis on RAILPACK_* environment variables, railpack.json overlays, build-plan inspection, local CLI installation and usage, and local BuildKit containers. Use for Railpack provider configuration, custom install/build/start commands, Mise or Apt packages, build or runtime variables and secrets, generated-plan debugging, BUILDKIT_HOST errors, or running Railpack from a release or source checkout.

Install
npx skills add 'https://github.com/railwayapp/railpack/tree/main/.'
Incomplete bundle · no download
main · 21a254fScanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

core/__snapshots__/TestGenerateBuildPlanForExamples_dotnet-cli_1.snap.json

core/__snapshots__/TestGenerateBuildPlanForExamples_dotnet-cli_1.snap.jsonBrowse 1970 files
View on GitHub
← Back to SKILL.md
{ "caches": {  "apt": {   "directory": "/var/cache/apt",   "type": "locked"  },  "apt-lists": {   "directory": "/var/lib/apt/lists",   "type": "locked"  } }, "deploy": {  "base": {   "step": "packages:apt:runtime"  },  "inputs": [   {    "include": [     "/mise/installs/dotnet/6.0"    ],    "step": "packages:mise"   },   {    "include": [     "out"    ],    "step": "build"   }  ],  "startCommand": "ASPNETCORE_URLS=http://0.0.0.0:${PORT:-3000} ./out/csharp-cli",  "variables": {   "ASPNETCORE_CONTENTROOT": "/app/out",   "ASPNETCORE_ENVIRONMENT": "Production",   "DOTNET_CLI_TELEMETRY_OPTOUT": "1",   "DOTNET_ROOT": "/mise/installs/dotnet/6.0",   "RAILPACK_VERSION": "dev"  } }, "steps": [  {   "assets": {    "generated-mise-toml": "[generated-mise-toml]"   },   "commands": [    {     "path": "/mise/shims"    },    {     "customName": "create mise config",     "name": "generated-mise-toml",     "path": "/etc/mise/config.toml"    },    {     "cmd": "mise install",     "customName": "install mise packages: dotnet"    }   ],   "inputs": [    {     "image": "ghcr.io/railwayapp/railpack-builder:mise-2026.9.9"    }   ],   "name": "packages:mise",   "variables": {    "MISE_CACHE_DIR": "/mise/cache",    "MISE_CONFIG_DIR": "/mise",    "MISE_DATA_DIR": "/mise",    "MISE_INSTALLS_DIR": "/mise/installs",    "MISE_SHIMS_DIR": "/mise/shims"   }  },  {   "commands": [    {     "dest": "nuget.config*",     "src": "nuget.config*"    },    {     "dest": "*.csproj",     "src": "*.csproj"    },    {     "dest": "global.json*",     "src": "global.json*"    },    {     "cmd": "mkdir -p /root/.nuget/packages"    },    {     "cmd": "dotnet restore"    }   ],   "inputs": [    {     "step": "packages:mise"    }   ],   "name": "install",   "secrets": [    "*"   ],   "variables": {    "ASPNETCORE_CONTENTROOT": "/app/out",    "ASPNETCORE_ENVIRONMENT": "Production",    "DOTNET_CLI_TELEMETRY_OPTOUT": "1",    "DOTNET_ROOT": "/mise/installs/dotnet/6.0"   }  },  {   "commands": [    {     "cmd": "dotnet publish --no-restore -c Release -o out"    }   ],   "inputs": [    {     "step": "packages:mise"    },    {     "include": [      "obj/",      "/root/.nuget/packages"     ],     "step": "install"    },    {     "include": [      "."     ],     "local": true    }   ],   "name": "build",   "secrets": [    "*"   ],   "variables": {    "ASPNETCORE_CONTENTROOT": "/app/out",    "ASPNETCORE_ENVIRONMENT": "Production",    "DOTNET_CLI_TELEMETRY_OPTOUT": "1",    "DOTNET_ROOT": "/mise/installs/dotnet/6.0"   }  },  {   "caches": [    "apt",    "apt-lists"   ],   "commands": [    {     "cmd": "sh -c 'apt-get update \u0026\u0026 apt-get install -y libicu-dev'",     "customName": "install apt packages: libicu-dev"    }   ],   "inputs": [    {     "image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.9.9"    }   ],   "name": "packages:apt:runtime"  } ]}