harry19s commited on
Commit
5bc53a2
·
verified ·
1 Parent(s): 27f6a5e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -56,12 +56,12 @@ RUN --mount=type=cache,target=/root/.cache/uv \
56
 
57
  FROM node:20-bookworm-slim AS frontend-builder
58
 
59
- WORKDIR /app/frontend
60
 
61
- COPY frontend/package.json frontend/package.json
62
- COPY frontend/vite.config.js frontend/vite.config.js
63
- COPY frontend/index.html frontend/index.html
64
- COPY frontend/src frontend/src
65
 
66
  RUN npm install
67
  RUN npm run build
 
56
 
57
  FROM node:20-bookworm-slim AS frontend-builder
58
 
59
+ WORKDIR /app
60
 
61
+ # Copy from builder stage (already has full repo)
62
+ COPY --from=builder /app/env/frontend ./frontend
63
+
64
+ WORKDIR /app/frontend
65
 
66
  RUN npm install
67
  RUN npm run build