Set permissions before running UWSGI

This commit is contained in:
Mark Veidemanis 2022-08-03 07:20:30 +01:00
parent 6a9faa7679
commit 36452f836c
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -18,4 +18,4 @@ WORKDIR /code
COPY requirements.prod.txt /code/
RUN python -m venv /venv
RUN . /venv/bin/activate && pip install -r requirements.prod.txt
CMD . /venv/bin/activate && uwsgi --ini /conf/uwsgi.ini
CMD . /venv/bin/activate && chown root:pathogen /code && chmod 0775 /code && uwsgi --ini /conf/uwsgi.ini