From 702a4225447a344c1f581a244d9a416393060c57 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 10 Jul 2022 07:56:07 +0200 Subject: [PATCH] Update Dockerfile --- wger/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wger/Dockerfile b/wger/Dockerfile index d252945de..21fcc03ab 100644 --- a/wger/Dockerfile +++ b/wger/Dockerfile @@ -32,11 +32,11 @@ USER root ENV FROM_EMAIL='wger Workout Manager ' ENV LOCATION=/data -RUN sed -i "1a python3 manage.py migrate || true" /home/wger/entrypoint.sh \ - && sed -i "1a ln -s $LOCATION/database.sqlite /home/wger/db" /home/wger/entrypoint.sh \ - #&& sed -i "1a if [ -f /data/database.sqlite ]; then mv -f /data/database.sqlite $LOCATION/database.sqlite; fi" /home/wger/entrypoint.sh \ - && sed -i "1a rm /home/wger/db/database.sqlite &>/dev/null || true" /home/wger/entrypoint.sh \ - && sed -i "1a mkdir -p $LOCATION && touch $LOCATION/database.sqlite || true && chown -R wger $LOCATION || true && chmod -R 777 $LOCATION || true" /home/wger/entrypoint.sh +#RUN sed -i "1a python3 manage.py migrate || true" /home/wger/entrypoint.sh \ +# && sed -i "1a ln -s $LOCATION/database.sqlite /home/wger/db" /home/wger/entrypoint.sh \ +# && sed -i "1a if [ -f /data/database.sqlite ]; then mv -f /data/database.sqlite $LOCATION/database.sqlite; fi" /home/wger/entrypoint.sh \ +# && sed -i "1a rm /home/wger/db/database.sqlite &>/dev/null || true" /home/wger/entrypoint.sh \ +# && sed -i "1a mkdir -p $LOCATION && touch $LOCATION/database.sqlite || true && chown -R wger $LOCATION || true && chmod -R 777 $LOCATION || true" /home/wger/entrypoint.sh ################## # 3 Install apps #