We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3376824 commit 8a3322bCopy full SHA for 8a3322b
Dockerfile
@@ -22,13 +22,16 @@ COPY --from=builder /opt/venv /opt/venv
22
COPY . .
23
RUN python manage.py collectstatic --noinput && \
24
rm -f /etc/nginx/sites-enabled/default && \
25
- chown -R nginxuser:nginxgroup /app
+ mkdir -p /var/lib/nginx/body /var/lib/nginx/proxy /var/log/nginx /run/nginx && \
26
+ chown -R nginxuser:nginxgroup /app /var/lib/nginx /var/log/nginx /run/nginx /etc/nginx
27
28
COPY nginx.conf /etc/nginx/nginx.conf
29
COPY proxy_params /etc/nginx/proxy_params
30
COPY entrypoint.sh /app/entrypoint.sh
31
RUN chmod +x /app/entrypoint.sh
32
33
+RUN chown nginxuser:nginxgroup /etc/nginx/nginx.conf /etc/nginx/proxy_params
34
+
35
EXPOSE 8080
36
USER nginxuser
37
ENTRYPOINT ["/app/entrypoint.sh"]
0 commit comments