Update Dockerfile

This commit is contained in:
Alexandre
2025-02-07 15:38:43 +01:00
committed by GitHub
parent 6e022e1c0b
commit f85e41b27e

View File

@@ -61,7 +61,7 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh
# Manual apps
ENV PACKAGES="cron bash gosu"
ENV PACKAGES="cron bash sudo"
# Automatic apps & bashio
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh"
@@ -82,7 +82,7 @@ RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.
# Adapt shebang
RUN \
# Run as www-data
sed -i "s|/usr|gosu www-data /usr|g" /etc/s6*/s6*/php-fpm/run && \
sed -i "s|/usr|sudo -Eu www-data /usr|g" /etc/s6*/s6*/php-fpm/run && \
# Move execute things
mkdir -p /scripts && \
mv /etc/entrypoint.d/11-execute-things.sh /scripts/ && \