Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions buildkit/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func ConvertPlanToLLB(plan *p.BuildPlan, opts ConvertPlanOptions) (*llb.State, *
WorkingDir: WorkingDir,
Entrypoint: []string{"/bin/bash", "-c"},
Cmd: []string{startCommand},
User: plan.Deploy.User,
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"deploy": {
"base": {
"step": "packages:apt:runtime"
"step": "setup:user"
},
"inputs": [
{
Expand Down Expand Up @@ -51,6 +51,7 @@
}
],
"startCommand": "pnpm run start",
"user": "1001",
"variables": {
"CI": "true",
"NODE_ENV": "production",
Expand Down Expand Up @@ -173,6 +174,20 @@
}
],
"name": "packages:apt:runtime"
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"step": "packages:apt:runtime"
}
],
"name": "setup:user"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"deploy": {
"base": {
"step": "packages:apt:runtime"
"step": "setup:user"
},
"inputs": [
{
Expand Down Expand Up @@ -51,6 +51,7 @@
}
],
"startCommand": "python --version \u0026\u0026 neofetch $HELLO",
"user": "1001",
"variables": {
"CI": "true",
"NODE_ENV": "production",
Expand Down Expand Up @@ -193,6 +194,20 @@
}
],
"name": "packages:apt:runtime"
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"step": "packages:apt:runtime"
}
],
"name": "setup:user"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"deploy": {
"base": {
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
"step": "setup:user"
},
"inputs": [
{
Expand All @@ -11,7 +11,8 @@
"step": "build"
}
],
"startCommand": "/build/cpp-cmake"
"startCommand": "/build/cpp-cmake",
"user": "1001"
},
"steps": [
{
Expand Down Expand Up @@ -73,6 +74,20 @@
"secrets": [
"*"
]
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
}
],
"name": "setup:user"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"deploy": {
"base": {
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
"step": "setup:user"
},
"inputs": [
{
Expand All @@ -11,7 +11,8 @@
"step": "build"
}
],
"startCommand": "/build/cpp-meson"
"startCommand": "/build/cpp-meson",
"user": "1001"
},
"steps": [
{
Expand Down Expand Up @@ -73,6 +74,20 @@
"secrets": [
"*"
]
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
}
],
"name": "setup:user"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"deploy": {
"base": {
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
"step": "setup:user"
},
"inputs": [
{
Expand All @@ -22,7 +22,8 @@
"step": "build"
}
],
"startCommand": "deno run --allow-all main.ts"
"startCommand": "deno run --allow-all main.ts",
"user": "1001"
},
"steps": [
{
Expand Down Expand Up @@ -78,6 +79,20 @@
"secrets": [
"*"
]
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
}
],
"name": "setup:user"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"deploy": {
"base": {
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
"step": "setup:user"
},
"inputs": [
{
Expand All @@ -11,7 +11,8 @@
"step": "build"
}
],
"startCommand": "sh start.sh"
"startCommand": "sh start.sh",
"user": "1001"
},
"steps": [
{
Expand Down Expand Up @@ -60,6 +61,20 @@
"secrets": [
"*"
]
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
}
],
"name": "setup:user"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"deploy": {
"base": {
"step": "packages:apt:runtime"
"step": "setup:user"
},
"inputs": [
{
Expand All @@ -28,6 +28,7 @@
}
],
"startCommand": "ASPNETCORE_URLS=http://0.0.0.0:${PORT:-3000} ./out/csharp-api",
"user": "1001",
"variables": {
"ASPNETCORE_CONTENTROOT": "/app/out",
"ASPNETCORE_ENVIRONMENT": "Production",
Expand Down Expand Up @@ -157,6 +158,20 @@
}
],
"name": "packages:apt:runtime"
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"step": "packages:apt:runtime"
}
],
"name": "setup:user"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"deploy": {
"base": {
"step": "packages:apt:runtime"
"step": "setup:user"
},
"inputs": [
{
Expand All @@ -28,6 +28,7 @@
}
],
"startCommand": "ASPNETCORE_URLS=http://0.0.0.0:${PORT:-3000} ./out/csharp-cli",
"user": "1001",
"variables": {
"ASPNETCORE_CONTENTROOT": "/app/out",
"ASPNETCORE_ENVIRONMENT": "Production",
Expand Down Expand Up @@ -157,6 +158,20 @@
}
],
"name": "packages:apt:runtime"
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"step": "packages:apt:runtime"
}
],
"name": "setup:user"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"deploy": {
"base": {
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
"step": "setup:user"
},
"inputs": [
{
Expand All @@ -12,6 +12,7 @@
}
],
"startCommand": "/app/_build/prod/rel/friends/bin/friends start",
"user": "1001",
"variables": {
"ELIXIR_ERL_OPTIONS": "+fnu",
"LANG": "en_US.UTF-8",
Expand Down Expand Up @@ -163,6 +164,20 @@
"MIX_ENV": "prod",
"MIX_HOME": "/root/.mix"
}
},
{
"commands": [
{
"cmd": "groupadd -g 1001 railpack \u0026\u0026 useradd -u 1001 -g railpack -m -s /bin/bash railpack \u0026\u0026 chown -R 1001:1001 /app",
"customName": "create non-root user"
}
],
"inputs": [
{
"image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.3.17"
}
],
"name": "setup:user"
}
]
}
Loading
Loading