File tree Expand file tree Collapse file tree 3 files changed +27
-8
lines changed
Expand file tree Collapse file tree 3 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 1+ # Use Node.js 20 as base image
2+ FROM node:20-slim
3+
4+ WORKDIR /app
5+
6+ # Copy package files
7+ COPY package.json package-lock.json* ./
8+
9+ # Install dependencies
10+ RUN npm ci --legacy-peer-deps
11+
12+ # Copy application files
13+ COPY . .
14+
15+ # Build the Next.js application (using Railway-specific build)
16+ RUN npm run build:railway
17+
18+ # Expose port
19+ EXPOSE 8080
20+
21+ ENV PORT=8080
22+ ENV NODE_ENV=production
23+
24+ # Start the application
25+ CMD ["npm" , "run" , "start" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11[build ]
2- builder = " NIXPACKS "
3- buildCommand = " npm run build:railway "
2+ builder = " DOCKERFILE "
3+ dockerfilePath = " website/Dockerfile "
44
55[deploy ]
6- startCommand = " npm run start"
76restartPolicyType = " ON_FAILURE"
87restartPolicyMaxRetries = 10
You can’t perform that action at this time.
0 commit comments