Update Dockerfile

This commit is contained in:
Alexandre
2023-09-07 23:01:31 +02:00
committed by GitHub
parent b0cb486a16
commit 39b3440f63

View File

@@ -69,12 +69,14 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
# Add entrypoint
ENV S6_STAGE2_HOOK=/ha_entrypoint.sh
ADD --chmod=777 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh"
ADD --chmod=644 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh"
# Corrects permissions for s6 v3
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi
RUN curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" --output /ha_entrypoint.sh \
&& chmod 777 /ha_entrypoint.sh
WORKDIR /data
ENTRYPOINT [ "/usr/bin/env" ]