Skip to content

Commit ef40b22

Browse files
Fix Railway CMD - use direct tsx path
1 parent b9a353e commit ef40b22

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /app
44

55
# Copy server package files and install dependencies
66
COPY server/package*.json ./
7-
RUN npm install --production && npm list tsx
7+
RUN npm install --production
88

99
# Copy source code
1010
COPY server/ ./
@@ -14,5 +14,5 @@ COPY shared/ ./shared/
1414
ENV NODE_ENV=production
1515
EXPOSE 5000
1616

17-
# Start with explicit path to tsx
18-
CMD ["./node_modules/.bin/tsx", "index.ts"]
17+
# Run tsx directly - bypass npm
18+
CMD ["node_modules/.bin/tsx", "index.ts"]

0 commit comments

Comments
 (0)