Create Dockerfile

This commit is contained in:
Alexandre
2022-01-26 20:29:01 +01:00
committed by GitHub
parent 8098f02562
commit cc8fd2adbe

View File

@@ -24,8 +24,8 @@ FROM wger/devel:latest
VOLUME [ "/data" ]
RUN sed -i "1a ln -s /data/database.sqlite /home/wger/db" /home/wger/entrypoint.sh \
&& sed -i "1a ln -s /data/database.sqlite /home/wger/db" /home/wger/entrypoint.sh \
&& sed -i "1a ln -s touch /data/database.sqlite" /home/wger/entrypoint.sh
&& sed -i "1a rm /home/wger/db/database.sqlite || 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 #