Update Dockerfile

This commit is contained in:
Alexandre
2023-11-29 20:17:16 +01:00
committed by GitHub
parent 83005533b0
commit b48691b128

View File

@@ -29,12 +29,12 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_SERVICES_GRACETIME=0
#RUN echo "Adding symlinks to entrypoint" \
# && sed -i \
# -e '1a chmod a+x /etc/cont-init.'
# -e '1a sed -i "s|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g" /etc/cont-init.d/*' \
# -e '1a for i in /etc/cont-init.d/*; do /."$i"; done' \
# /entrypoint.sh
RUN echo "Adding symlinks to entrypoint" \
&& sed -i \
-e '1a chmod a+x /etc/cont-init.d/*' \
-e '1a sed -i "s|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g" /etc/cont-init.d/*' \
-e '1a for i in /etc/cont-init.d/*; do /."$i"; done' \
/entrypoint.sh
##################
# 3 Install apps #
@@ -70,8 +70,8 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh
#
ENTRYPOINT [ "/usr/bin/env" ]
CMD [ "/ha_entrypoint.sh" ]
#ENTRYPOINT [ "/usr/bin/env" ]
#CMD [ "/ha_entrypoint.sh" ]
############
# 5 Labels #