Update Dockerfile

This commit is contained in:
Alexandre
2025-09-01 09:18:22 +02:00
committed by GitHub
parent 8a1db83648
commit 386091846a

View File

@@ -36,8 +36,8 @@ ENV SYNC_EXERCISES_ON_STARTUP=True \
USER root
#RUN echo "wger ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
# sed -i "1a sudo -E '/./ha_entrypoint.sh' || true" /home/wger/entrypoint.sh
RUN echo "wger ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
sed -i "1a sudo -E '/./ha_entrypoint.sh && chown wger /.env' && source /.env" /home/wger/entrypoint.sh
##################
# 3 Install apps #
@@ -81,9 +81,9 @@ RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/bashio-standalone.sh" "/.bashio-standalone.sh"
RUN chmod 777 /.bashio-standalone.sh
#USER wger
ENTRYPOINT ["/usr/bin/env"]
CMD ["/ha_entrypoint.sh"]
USER wger
#ENTRYPOINT ["/usr/bin/env"]
#CMD ["/ha_entrypoint.sh"]
############
# 5 Labels #