mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-24 23:10:32 +02:00
Update Dockerfile
This commit is contained in:
@@ -33,18 +33,18 @@ RUN \
|
|||||||
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
||||||
&& 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 \
|
||||||
\
|
|
||||||
################
|
################
|
||||||
# Modify image #
|
# 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
|
# Add script
|
||||||
#&& sed -i '1d' /docker-entrypoint.sh \
|
#&& sed -i '1d' /docker-entrypoint.sh \
|
||||||
#&& cat /newscript > /temporaryfile \
|
# && cat /newscript > /temporaryfile \
|
||||||
# && cat /docker-entrypoint.sh >> /temporaryfile \
|
#&& cat /docker-entrypoint.sh >> /temporaryfile \
|
||||||
# && cat /temporaryfile > /docker-entrypoint.sh \
|
# && cat /temporaryfile > /docker-entrypoint.sh \
|
||||||
# && chmod +x /docker-entrypoint.sh \
|
# && chmod +x /docker-entrypoint.sh \
|
||||||
# && rm /temporaryfile
|
# && rm /temporaryfile
|
||||||
# Add correct location
|
# Add correct location
|
||||||
#&& sed -i "s|CONFIG_FILE="data|CONFIG_FILE="/data|g" /etc/cont-init.d/
|
#&& sed -i "s|CONFIG_FILE="data|CONFIG_FILE="/data|g" /etc/cont-init.d/
|
||||||
################
|
################
|
||||||
@@ -57,6 +57,7 @@ RUN \
|
|||||||
|
|
||||||
ENV WEBTREES_HOME="/data"
|
ENV WEBTREES_HOME="/data"
|
||||||
WORKDIR $WEBTREES_HOME
|
WORKDIR $WEBTREES_HOME
|
||||||
|
ENTRYPOINT ["/run.sh"]
|
||||||
#COPY /var/www/webtrees/.htaccess $WEBTREES_HOME
|
#COPY /var/www/webtrees/.htaccess $WEBTREES_HOME
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user