Update Dockerfile

This commit is contained in:
Alexandre
2021-10-20 22:30:25 +02:00
committed by GitHub
parent 31b341c667
commit 5d1f3caee6

View File

@@ -33,18 +33,18 @@ RUN \
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio \
\
################
# Modify image #
################
&& sed -i 's/bash/bashio/g' /docker-entrypoint.sh
&& chmod +x /run.sh
#&& sed -i 's!/bin/bash/bashio/g' /docker-entrypoint.sh
# Add script
#&& sed -i '1d' /docker-entrypoint.sh \
#&& cat /newscript > /temporaryfile \
# && cat /docker-entrypoint.sh >> /temporaryfile \
# && cat /temporaryfile > /docker-entrypoint.sh \
# && chmod +x /docker-entrypoint.sh \
# && rm /temporaryfile
# && cat /newscript > /temporaryfile \
#&& cat /docker-entrypoint.sh >> /temporaryfile \
# && cat /temporaryfile > /docker-entrypoint.sh \
# && chmod +x /docker-entrypoint.sh \
# && rm /temporaryfile
# Add correct location
#&& sed -i "s|CONFIG_FILE="data|CONFIG_FILE="/data|g" /etc/cont-init.d/
################
@@ -57,6 +57,7 @@ RUN \
ENV WEBTREES_HOME="/data"
WORKDIR $WEBTREES_HOME
ENTRYPOINT ["/run.sh"]
#COPY /var/www/webtrees/.htaccess $WEBTREES_HOME