Update Dockerfile

This commit is contained in:
Alexandre
2021-10-21 07:50:45 +02:00
committed by GitHub
parent 54febb0ea3
commit a94ff263b8

View File

@@ -34,14 +34,14 @@ RUN \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio && rm -rf /tmp/bashio
RUN \ #RUN \
################ ################
# Modify image # # Modify image #
################ ################
chmod a+x /run.sh \ #chmod a+x /run.sh \
&& sed -i "2 i\./run.sh || true" /docker-entrypoint.sh \ #&& sed -i "2 i\./run.sh || true" /docker-entrypoint.sh \
&& cp -n /var/www/webtrees /data \ #&& cp -n /var/www/webtrees /data \
&& grep -rlZ 'foo' . | xargs -0 sed -i.bak 's|/var/www/webtrees|/data|g' #&& grep -rlZ 'foo' . | xargs -0 sed -i.bak 's|/var/www/webtrees|/data|g'
#&& sed -i 's!/bin/bash/bashio/g' /docker-entrypoint.sh #&& sed -i 's!/bin/bash/bashio/g' /docker-entrypoint.sh
# Add script # Add script
#&& sed -i '1d' /docker-entrypoint.sh \ #&& sed -i '1d' /docker-entrypoint.sh \
@@ -60,8 +60,8 @@ RUN \
#&& touch /data/webtrees.sqlite \ #&& touch /data/webtrees.sqlite \
#&& ln -s /data/webtrees.sqlite /var/www/webtrees/data #&& ln -s /data/webtrees.sqlite /var/www/webtrees/data
ENV WEBTREES_HOME="/data" #ENV WEBTREES_HOME="/data"
WORKDIR $WEBTREES_HOME #WORKDIR $WEBTREES_HOME
#ENTRYPOINT ["/run.sh"] #ENTRYPOINT ["/run.sh"]
#COPY /var/www/webtrees/.htaccess $WEBTREES_HOME #COPY /var/www/webtrees/.htaccess $WEBTREES_HOME