Browse Source

Pongo setuid a nginx

main
Celestino Rey 10 months ago
parent
commit
11b1ed9dee
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      Dockerfile
  2. +1
    -1
      src/config/entrypoint.sh

+ 1
- 0
Dockerfile View File

@ -27,6 +27,7 @@ RUN python -m venv /opt/venv && \
# make our entrypoint.sh executable # make our entrypoint.sh executable
RUN chmod +x config/entrypoint.sh RUN chmod +x config/entrypoint.sh
RUN chmod u+s /usr/sbin/nginx
# execute our entrypoint.sh file # execute our entrypoint.sh file
CMD ["./config/entrypoint.sh"] CMD ["./config/entrypoint.sh"]

+ 1
- 1
src/config/entrypoint.sh View File

@ -4,4 +4,4 @@ RUN_PORT="8000"
/opt/venv/bin/python manage.py migrate --no-input /opt/venv/bin/python manage.py migrate --no-input
/opt/venv/bin/gunicorn cfehome.wsgi:application --bind "0.0.0.0:${RUN_PORT}" --daemon /opt/venv/bin/gunicorn cfehome.wsgi:application --bind "0.0.0.0:${RUN_PORT}" --daemon
nginx -g 'daemon off;'
sudo nginx -g 'daemon off;'

Loading…
Cancel
Save