This commit is contained in:
Alexandre
2022-07-09 18:56:28 +02:00
committed by GitHub
parent 1a10223087
commit cf9890b2d2

View File

@@ -28,11 +28,12 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
VOLUME [ "/data" ]
#USER root
USER root
#RUN 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
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
##################
# 3 Install apps #