Skip to content

Commit db59988

Browse files
GeneAIGeneAI
authored andcommitted
fix: Use Nixpacks builder instead of Dockerfile
1 parent e06b5ad commit db59988

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

nixpacks.toml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
[phases.setup]
2-
nixPkgs = ["nodejs_20", "npm-9_x"]
2+
nixPkgs = ["nodejs_20"]
33

44
[phases.install]
5-
cmds = [
6-
"cd website",
7-
"npm ci --legacy-peer-deps"
8-
]
5+
cmds = ["cd website && npm ci"]
96

107
[phases.build]
11-
cmds = [
12-
"cd website",
13-
"npm run build"
14-
]
8+
cmds = ["cd website && npm run build:railway && cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public"]
159

1610
[start]
17-
cmd = "cd website && npm run start"
11+
cmd = "cd website/.next/standalone && node server.js"

railway.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[build]
2-
builder = "dockerfile"
3-
dockerfilePath = "Dockerfile"
2+
builder = "nixpacks"
43

54
[deploy]
65
restartPolicyType = "ON_FAILURE"

0 commit comments

Comments
 (0)