Spaces:
Sleeping
Sleeping
Hackathon Builder commited on
Commit ·
5cb756d
1
Parent(s): 6a059ac
Fix Docker build: use cp instead of mv to prevent directory collision
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -25,8 +25,8 @@ RUN cd frontend && npm install && npm run build
|
|
| 25 |
COPY --chown=user backend/ ./backend/
|
| 26 |
COPY --chown=user codeblue_context.py .
|
| 27 |
|
| 28 |
-
#
|
| 29 |
-
RUN
|
| 30 |
|
| 31 |
# Set environment variables for Hugging Face
|
| 32 |
ENV PORT=7860
|
|
|
|
| 25 |
COPY --chown=user backend/ ./backend/
|
| 26 |
COPY --chown=user codeblue_context.py .
|
| 27 |
|
| 28 |
+
# Copy built frontend to backend static directory
|
| 29 |
+
RUN rm -rf backend/static && mkdir -p backend/static && cp -r frontend/dist/* backend/static/
|
| 30 |
|
| 31 |
# Set environment variables for Hugging Face
|
| 32 |
ENV PORT=7860
|