Skip to content
Snippets Groups Projects
Commit b413b38c authored by jan.bednarik's avatar jan.bednarik
Browse files

Dockerfile fix user and dirs permissions

parent b863ad93
No related branches found
No related tags found
No related merge requests found
Pipeline #421 passed
...@@ -8,8 +8,11 @@ RUN pip install -r requirements/base.txt -r requirements/production.txt ...@@ -8,8 +8,11 @@ RUN pip install -r requirements/base.txt -r requirements/production.txt
COPY . . COPY . .
RUN useradd app RUN bash -c 'adduser --disabled-login --quiet --gecos app app && \
RUN chown -R app /app chmod -R o+r /app/ && \
mkdir /app/media_files && \
chown -R app:app /app/media_files && \
chmod o+x /app/run.sh'
USER app USER app
# TODO HACK! # TODO HACK!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment