danielle2035 commited on
Commit
fbe61df
·
1 Parent(s): 8813834

Fix: Correct Dockerfile syntax for RUN instructions

Browse files
Files changed (1) hide show
  1. 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 2>/dev/null || {
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