Peiyan commited on
Commit
dca2fa6
·
verified ·
1 Parent(s): 1f73ad7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -29,10 +29,10 @@ COPY ./backend ./backend
29
  RUN pip install -r ./backend/requirements.txt
30
 
31
  # Ensure necessary permissions and create directories
32
- RUN chmod -R 755 /var/log/nginx && \
33
- chmod -R 755 /var/lib/nginx && \
34
- mkdir -p /var/lib/nginx/body && \
35
- chown -R root:root /var/log/nginx /var/lib/nginx /usr/share/nginx/html
36
 
37
  # Step #3: configure nginx and flask
38
  COPY --from=build-step /app/frontend/build /usr/share/nginx/html
 
29
  RUN pip install -r ./backend/requirements.txt
30
 
31
  # Ensure necessary permissions and create directories
32
+ RUN mkdir -p /var/log/nginx && \
33
+ touch /var/log/nginx/error.log && \
34
+ chmod -R 755 /var/log/nginx && \
35
+ chown -R root:root /var/log/nginx
36
 
37
  # Step #3: configure nginx and flask
38
  COPY --from=build-step /app/frontend/build /usr/share/nginx/html