k-l-lambda commited on
Commit
863c3aa
·
1 Parent(s): 31ac8d2

Fix Docker build: use global tsx/tsc directly instead of npm run

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -26,14 +26,14 @@ RUN npm install --omit=dev && \
26
  cd ../backend && npm install && \
27
  cd ..
28
 
29
- # Build jison parsers (required for the game)
30
- RUN npm run build:parsers
31
 
32
  # Build frontend (generates dist folder)
33
  RUN cd app && npm run build
34
 
35
- # Build backend TypeScript
36
- RUN cd backend && npm run build
37
 
38
  # Set environment variables for Hugging Face Spaces
39
  ENV PORT=7860
 
26
  cd ../backend && npm install && \
27
  cd ..
28
 
29
+ # Build jison parsers (required for the game) - use global tsx directly
30
+ RUN tsx tools/buildJisonParser.ts
31
 
32
  # Build frontend (generates dist folder)
33
  RUN cd app && npm run build
34
 
35
+ # Build backend TypeScript - use global tsc directly
36
+ RUN cd backend && tsc
37
 
38
  # Set environment variables for Hugging Face Spaces
39
  ENV PORT=7860