Move gunicorn conf to etc directory

This commit is contained in:
Jake Howard 2022-07-29 08:29:50 +01:00
parent c88fddf835
commit 9a15fcbe60
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 1 deletions

View file

@ -30,13 +30,14 @@ RUN pip install --upgrade pip && pip install -r ./requirements/base.txt
COPY --chown=website --from=frontend ./static/build ./static/build COPY --chown=website --from=frontend ./static/build ./static/build
COPY --chown=website ./etc ./etc
COPY --chown=website ./manage.py ./manage.py COPY --chown=website ./manage.py ./manage.py
COPY --chown=website ./templates ./templates COPY --chown=website ./templates ./templates
COPY --chown=website ./website ./website COPY --chown=website ./website ./website
RUN SECRET_KEY=none python manage.py collectstatic --noinput --clear -v3 RUN SECRET_KEY=none python manage.py collectstatic --noinput --clear -v3
CMD gunicorn CMD gunicorn -c etc/gunicorn.conf.py
# Just dev stuff # Just dev stuff
FROM production as dev FROM production as dev