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

Fix Docker build: install build tools globally and skip onnxruntime-node

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -15,8 +15,13 @@ WORKDIR /app
15
  # Copy entire trigo-web project
16
  COPY trigo-web/ ./
17
 
18
- # Install all dependencies (root, app, backend)
19
- RUN npm install && \
 
 
 
 
 
20
  cd app && npm install && \
21
  cd ../backend && npm install && \
22
  cd ..
 
15
  # Copy entire trigo-web project
16
  COPY trigo-web/ ./
17
 
18
+ # Install build tools globally
19
+ RUN npm install -g tsx jison typescript
20
+
21
+ # Install dependencies
22
+ # Root: production only (skip onnxruntime-node which requires native compilation)
23
+ # App & Backend: all deps needed for build
24
+ RUN npm install --omit=dev && \
25
  cd app && npm install && \
26
  cd ../backend && npm install && \
27
  cd ..