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_node-bun-bunfig_1.snap.json

core/__snapshots__/TestGenerateBuildPlanForExamples_node-bun-bunfig_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"  },  "bun-install": {   "directory": "/root/.bun/install/cache",   "type": "shared"  },  "node-modules": {   "directory": "/app/node_modules/.cache",   "type": "shared"  } }, "deploy": {  "base": {   "step": "packages:apt:runtime"  },  "inputs": [   {    "include": [     "/mise/shims",     "/mise/installs",     "/usr/local/bin/mise",     "/etc/mise/config.toml",     "/root/.local/state/mise"    ],    "step": "packages:mise"   },   {    "include": [     "/app/node_modules"    ],    "step": "build"   },   {    "exclude": [     "node_modules",     ".yarn"    ],    "include": [     "/root/.cache",     "."    ],    "step": "build"   }  ],  "startCommand": "bun index.ts",  "variables": {   "CI": "true",   "NODE_ENV": "production",   "NPM_CONFIG_FETCH_RETRIES": "5",   "NPM_CONFIG_FUND": "false",   "NPM_CONFIG_PRODUCTION": "false",   "NPM_CONFIG_UPDATE_NOTIFIER": "false",   "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: bun, node"    }   ],   "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"   }  },  {   "caches": [    "bun-install"   ],   "commands": [    {     "path": "/app/node_modules/.bin"    },    {     "cmd": "mkdir -p /app/node_modules/.cache"    },    {     "dest": "bun.lock",     "src": "bun.lock"    },    {     "dest": "bunfig.toml",     "src": "bunfig.toml"    },    {     "dest": "package.json",     "src": "package.json"    },    {     "cmd": "bun install --frozen-lockfile"    }   ],   "inputs": [    {     "step": "packages:mise"    }   ],   "name": "install",   "variables": {    "CI": "true",    "NODE_ENV": "production",    "NPM_CONFIG_FETCH_RETRIES": "5",    "NPM_CONFIG_FUND": "false",    "NPM_CONFIG_PRODUCTION": "false",    "NPM_CONFIG_UPDATE_NOTIFIER": "false"   }  },  {   "caches": [    "node-modules"   ],   "inputs": [    {     "step": "install"    },    {     "include": [      "."     ],     "local": true    }   ],   "name": "build",   "secrets": [    "*"   ]  },  {   "caches": [    "apt",    "apt-lists"   ],   "commands": [    {     "cmd": "sh -c 'apt-get update \u0026\u0026 apt-get install -y libatomic1'",     "customName": "install apt packages: libatomic1"    }   ],   "inputs": [    {     "image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.9.9"    }   ],   "name": "packages:apt:runtime"  } ]}