maximedenes commited on
Commit
2e261f1
Β·
1 Parent(s): 8f23671

Fix Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -39,9 +39,9 @@ RUN apt-get update && apt-get install -y \
39
  RUN npm install --global yarn
40
 
41
  # Copy frontend server and build
42
- COPY --from=frontend-build /app/build ./frontend/build
43
  COPY --from=frontend-build /app/package*.json ./frontend/
44
- COPY --from=frontend-build /app/server.js ./frontend/
45
 
46
  # Install frontend production dependencies
47
  WORKDIR /app/frontend
@@ -60,4 +60,4 @@ USER user
60
  EXPOSE 7860
61
 
62
  # Start both servers with wait-for
63
- CMD ["sh", "-c", "uvicorn app.asgi:app --host 0.0.0.0 --port 7861 & while ! nc -z localhost 7861; do sleep 1; done && cd frontend && node index.cjs"]
 
39
  RUN npm install --global yarn
40
 
41
  # Copy frontend server and build
42
+ COPY --from=frontend-build /app/dist ./frontend/dist
43
  COPY --from=frontend-build /app/package*.json ./frontend/
44
+ COPY --from=frontend-build /app/server.cjs ./frontend/
45
 
46
  # Install frontend production dependencies
47
  WORKDIR /app/frontend
 
60
  EXPOSE 7860
61
 
62
  # Start both servers with wait-for
63
+ CMD ["sh", "-c", "uvicorn app.asgi:app --host 0.0.0.0 --port 7861 & while ! nc -z localhost 7861; do sleep 1; done && cd frontend && node server.cjs"]