root: fix permission denied error for backups

This commit is contained in:
Jens Langhammer
2020-10-26 19:07:08 +01:00
parent 6a8000ea0d
commit 6b3411f63b
5 changed files with 18 additions and 4 deletions

View File

@ -32,7 +32,9 @@ RUN apt-get update && \
groupadd -g 999 docker_999 && \
adduser --system --no-create-home --uid 1000 --group --home /passbook passbook && \
usermod -a -G docker_998 passbook && \
usermod -a -G docker_999 passbook
usermod -a -G docker_999 passbook && \
mkdir /backups && \
chown passbook:passbook /backups
COPY ./passbook/ /passbook
COPY ./manage.py /