Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -36,8 +36,8 @@ RUN python manage.py collectstatic --noinput
|
|
36 |
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
37 |
|
38 |
# Create necessary directories for Nginx (with proper permissions)
|
39 |
-
RUN mkdir -p /var/lib/nginx/body /app/static /app/media && \
|
40 |
-
chown -R user:user /var/lib/nginx /app
|
41 |
|
42 |
# Switch back to the non-root user
|
43 |
USER user
|
|
|
36 |
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
37 |
|
38 |
# Create necessary directories for Nginx (with proper permissions)
|
39 |
+
RUN mkdir -p /var/lib/nginx/body /var/log/nginx /app/static /app/media && \
|
40 |
+
chown -R user:user /var/lib/nginx /var/log/nginx /app
|
41 |
|
42 |
# Switch back to the non-root user
|
43 |
USER user
|