Update Dockerfile

This commit is contained in:
Alexandre
2022-07-09 18:58:45 +02:00
committed by GitHub
parent cf9890b2d2
commit 4fef9ea27a

View File

@@ -30,7 +30,7 @@ VOLUME [ "/data" ]
USER root
RUN && sed -i "1a ls /home/wger/src" /home/wger/entrypoint.sh \
RUN sed -i "1a ls /home/wger/src" /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