From 36452f836c2ab4fa713860631569149bb0e40c9b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 3 Aug 2022 07:20:30 +0100 Subject: [PATCH] Set permissions before running UWSGI --- docker/prod/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index c8386d1..ffd54bf 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -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 \ No newline at end of file +CMD . /venv/bin/activate && chown root:pathogen /code && chmod 0775 /code && uwsgi --ini /conf/uwsgi.ini \ No newline at end of file