File tree Expand file tree Collapse file tree 3 files changed +7
-16
lines changed
Expand file tree Collapse file tree 3 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ FROM node:20-slim
33
44WORKDIR /app
55
6- # Copy package files
7- COPY package.json package-lock.json* ./
6+ # Copy package files from website directory
7+ COPY website/ package.json website/ package-lock.json* ./
88
99# Install dependencies
1010RUN npm ci --legacy-peer-deps
1111
12- # Copy application files
13- COPY . .
12+ # Copy website files
13+ COPY website/ ./
1414
1515# Build the Next.js application (using Railway-specific build)
1616RUN npm run build:railway
Original file line number Diff line number Diff line change 11[build ]
2- builder = " nixpacks"
2+ builder = " DOCKERFILE"
3+ dockerfilePath = " Dockerfile"
34
45[deploy ]
5- startCommand = " cd website && npm run start"
6- healthcheckPath = " /"
7- healthcheckTimeout = 100
8- restartPolicyType = " on_failure"
6+ restartPolicyType = " ON_FAILURE"
97restartPolicyMaxRetries = 10
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments