Spaces:
Sleeping
Sleeping
Commit ·
fbe61df
1
Parent(s): 8813834
Fix: Correct Dockerfile syntax for RUN instructions
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -54,15 +54,11 @@ WORKDIR /app/backend/api
|
|
| 54 |
RUN mkdir -p static media logs
|
| 55 |
|
| 56 |
# Collect static files during build (not runtime)
|
| 57 |
-
RUN python manage.py collectstatic --noinput --clear
|
| 58 |
-
echo "Warning: Static files collection failed during build"
|
| 59 |
-
}
|
| 60 |
|
| 61 |
# Copy frontend build to Django static directory during build
|
| 62 |
RUN mkdir -p static/frontend && \
|
| 63 |
-
cp -r /app/frontend/build/* static/frontend/ 2>/dev/null ||
|
| 64 |
-
echo "Warning: Frontend build copy failed during build"
|
| 65 |
-
}
|
| 66 |
|
| 67 |
# Make entrypoint executable
|
| 68 |
RUN chmod +x /app/backend/api/entrypoint.sh
|
|
|
|
| 54 |
RUN mkdir -p static media logs
|
| 55 |
|
| 56 |
# Collect static files during build (not runtime)
|
| 57 |
+
RUN python manage.py collectstatic --noinput --clear || echo "Warning: Static files collection failed during build"
|
|
|
|
|
|
|
| 58 |
|
| 59 |
# Copy frontend build to Django static directory during build
|
| 60 |
RUN mkdir -p static/frontend && \
|
| 61 |
+
cp -r /app/frontend/build/* static/frontend/ 2>/dev/null || echo "Warning: Frontend build copy failed during build"
|
|
|
|
|
|
|
| 62 |
|
| 63 |
# Make entrypoint executable
|
| 64 |
RUN chmod +x /app/backend/api/entrypoint.sh
|