|
|
|
@ -23,8 +23,6 @@ RUN chown -R nginx:0 /var/log/nginx && \ |
|
|
|
RUN touch /var/run/nginx.pid && \ |
|
|
|
chown -R nginx:0 /var/run/nginx.pid |
|
|
|
|
|
|
|
USER nginx |
|
|
|
|
|
|
|
# change our working directory to the django projcet roo |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
@ -38,5 +36,7 @@ RUN python -m venv /opt/venv && \ |
|
|
|
# make our entrypoint.sh executable |
|
|
|
RUN chmod +x config/entrypoint.sh |
|
|
|
|
|
|
|
USER nginx |
|
|
|
|
|
|
|
# execute our entrypoint.sh file |
|
|
|
CMD ["./config/entrypoint.sh"] |