Skip to content

Commit

Permalink
Add workarounds for data/ permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
floens committed Aug 5, 2017
1 parent 6f3d9fc commit 0b7404b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -15,7 +15,7 @@ ADD requirements /opt/app/requirements
WORKDIR /opt/app
RUN pip3 install -r requirements

RUN addgroup -S uchan && adduser -S uchan uchan
RUN addgroup -S uchan && adduser -u 1001 -S uchan uchan

ADD . /opt/app
RUN mkdir -p /opt/app/data/log && chown -R uchan:uchan /opt/app/data/log && \
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -16,6 +16,10 @@ upgrade:
docker-compose run app upgrade

setup: start
@# TODO: clean this up
chown 1001 -R data/log data/media
docker-compose down
docker-compose up -d
docker-compose run app setup

start:
Expand Down

0 comments on commit 0b7404b

Please sign in to comment.