From 8b665dd589acd4e9e1a2364546e5d70bd5e03777 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 22 Oct 2021 21:37:23 +0200 Subject: [PATCH] Update Dockerfile --- webtrees/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webtrees/Dockerfile b/webtrees/Dockerfile index ed1aa8f1d..ae3a06308 100644 --- a/webtrees/Dockerfile +++ b/webtrees/Dockerfile @@ -1,14 +1,15 @@ ARG BUILD_VERSION FROM nathanvaughn/webtrees:latest -ARG BASHIO_VERSION=0.13.1 - # Copy root filesystem COPY rootfs / +# Global variables +ARG BASHIO_VERSION=0.13.1 ENV WEBTREES_HOME="/data/webtrees" WORKDIR $WEBTREES_HOME ENTRYPOINT ["/run.sh"] +VOLUME ["/data"] RUN \ ################ @@ -36,6 +37,7 @@ RUN \ ################ # Change data location && cp -rn /var/www/webtrees /data \ + && mkdir -p /data/webtrees \ && chown -R www-data:www-data /data/webtrees \ && grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g' \ \