Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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
|
33 |
-
|
34 |
-
|
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
|
|
|
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
|