Skip to content

Commit 320aad3

Browse files
fix: Force Railway rebuild and ensure minimal server is completely removed
- Added explicit removal of minimal.js in Dockerfile - Changed Dockerfile comment to force cache invalidation - Railway should now rebuild from scratch and use full server
1 parent f0bccf1 commit 320aad3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Railway Optimized Dockerfile
1+
# Railway Optimized Dockerfile - Force rebuild v2
22
FROM node:20-slim
33

44
# Install dependencies for build
@@ -30,5 +30,8 @@ RUN rm -rf src/ scripts/ test/ tests/ __tests__ *.test.* *.spec.* node_modules/.
3030
# Expose port (Railway uses PORT env var)
3131
EXPOSE 3000
3232

33+
# Ensure minimal.js doesn't exist and start FULL server
34+
RUN rm -f dist/servers/railway/minimal.js dist/servers/railway/minimal.js.map || true
35+
3336
# Start the FULL server with authentication endpoints
3437
CMD ["node", "dist/servers/railway/index.js"]

0 commit comments

Comments
 (0)