k-l-lambda commited on
Commit
3fca6c2
·
1 Parent(s): b5101c0

Skip vue-tsc type checking in production build

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM node:20-slim
3
  # Set noninteractive installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Build timestamp to force cache invalidation: 2026-01-12T18:20
7
 
8
  # Install build dependencies
9
  RUN apt-get update && apt-get install -y \
@@ -31,8 +31,8 @@ RUN npm install --omit=dev && \
31
  # Build jison parsers (required for the game) - use global tsx directly
32
  RUN tsx tools/buildJisonParser.ts
33
 
34
- # Build frontend (generates dist folder) - explicitly set production mode
35
- RUN cd app && npm run build -- --mode production
36
 
37
  # Build backend with esbuild (handles ESM imports without .js extensions)
38
  RUN esbuild backend/src/server.ts --bundle --platform=node --target=node20 --format=esm --outfile=backend/dist/server.js --external:express --external:socket.io --external:cors --external:dotenv --external:uuid
 
3
  # Set noninteractive installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Build timestamp to force cache invalidation: 2026-01-12T18:25
7
 
8
  # Install build dependencies
9
  RUN apt-get update && apt-get install -y \
 
31
  # Build jison parsers (required for the game) - use global tsx directly
32
  RUN tsx tools/buildJisonParser.ts
33
 
34
+ # Build frontend (generates dist folder) - skip vue-tsc type checking, build only
35
+ RUN cd app && npx vite build --mode production
36
 
37
  # Build backend with esbuild (handles ESM imports without .js extensions)
38
  RUN esbuild backend/src/server.ts --bundle --platform=node --target=node20 --format=esm --outfile=backend/dist/server.js --external:express --external:socket.io --external:cors --external:dotenv --external:uuid