Update Dockerfile

This commit is contained in:
Alexandre
2022-07-09 19:51:08 +02:00
committed by GitHub
parent c40d037a82
commit 4693f9378f

View File

@@ -34,7 +34,7 @@ ENV FROM_EMAIL='wger Workout Manager <wger@example.com>'
RUN sed -i "1a python3 manage.py migrate || true" /home/wger/entrypoint.sh \
&& sed -i "1a ln -s /data/database.sqlite /home/wger/db" /home/wger/entrypoint.sh \
&& sed -i "1a rm /home/wger/db/database.sqlite &>/dev/null || true" /home/wger/entrypoint.sh \
&& sed -i "1a touch /data/database.sqlite && chown -R wger /data && chmod -R 777 /data" /home/wger/entrypoint.sh
&& sed -i "1a touch /data/database.sqlite || true && chown -R wger /data || true && chmod -R 777 /data || true" /home/wger/entrypoint.sh
##################
# 3 Install apps #