Skip to content

Commit df9451c

Browse files
GeneAIGeneAI
authored andcommitted
fix: Move Dockerfile and railway.toml to root directory for Railway detection
1 parent 05cd2d2 commit df9451c

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

website/Dockerfile renamed to Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ FROM node:20-slim
33

44
WORKDIR /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
1010
RUN 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)
1616
RUN npm run build:railway

railway.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
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"
97
restartPolicyMaxRetries = 10

website/railway.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)