entrypoint logic

This commit is contained in:
Alexandre
2021-11-13 13:02:39 +01:00
parent 2acb25daf8
commit 11b402cb10
16 changed files with 144 additions and 76 deletions

View File

@@ -8,7 +8,6 @@ COPY rootfs /
ARG BASHIO_VERSION=0.13.1
ENV WEBTREES_HOME="/data/webtrees"
WORKDIR $WEBTREES_HOME
ENTRYPOINT ["/run.sh"]
VOLUME ["/data"]
RUN \
@@ -36,14 +35,16 @@ RUN \
# Modify image #
################
# Change data location
&& grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g' \
\
# Add entry script
&& chown root:root /run.sh \
&& chmod a+x /run.sh \
&& grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g' || true
# Add entry script
RUN chown root:root /entrypoint.sh \
&& chmod 777 /entrypoint.sh \
# Add end script
&& sed -i '$ d' /docker-entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
### LABELS
ARG BUILD_ARCH
ARG BUILD_DATE