diff --git a/Dockerfile b/Dockerfile index 6c64354..abcc4fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,7 @@ RUN python -m venv /opt/venv && \ # make our entrypoint.sh executable RUN chmod +x config/entrypoint.sh +RUN chmod u+s /usr/sbin/nginx # execute our entrypoint.sh file CMD ["./config/entrypoint.sh"] diff --git a/src/config/entrypoint.sh b/src/config/entrypoint.sh index aecfc36..06c309f 100644 --- a/src/config/entrypoint.sh +++ b/src/config/entrypoint.sh @@ -4,4 +4,4 @@ RUN_PORT="8000" /opt/venv/bin/python manage.py migrate --no-input /opt/venv/bin/gunicorn cfehome.wsgi:application --bind "0.0.0.0:${RUN_PORT}" --daemon -nginx -g 'daemon off;' +sudo nginx -g 'daemon off;'