Update Dockerfile with commented lines and sed modifications

This commit is contained in:
Alexandre
2025-09-15 18:55:37 +02:00
committed by GitHub
parent 19970d029b
commit 07bfd6ea8a

View File

@@ -32,16 +32,18 @@ ENV GUACAMOLE_HOME=/config
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
WORKDIR /config #WORKDIR /config
# hadolint ignore=SC2016 # hadolint ignore=SC2016
RUN \ RUN \
# Enable extensions # Enable extensions
exit 0 && \
sed -i 's|#!/usr/bin/with-contenv sh|#!/usr/bin/with-contenv bashio|g' /etc/cont-init.d/50-extensions.sh \ sed -i 's|#!/usr/bin/with-contenv sh|#!/usr/bin/with-contenv bashio|g' /etc/cont-init.d/50-extensions.sh \
&& sed -i 's|$EXTENSIONS|$(bashio::config "EXTENSIONS")|g' /etc/cont-init.d/50-extensions.sh && sed -i 's|$EXTENSIONS|$(bashio::config "EXTENSIONS")|g' /etc/cont-init.d/50-extensions.sh
RUN \ RUN \
# Correct transfer # Correct transfer
exit 0 && \
sed -i 's|cp -rn /app/guacamole|cp -rn /app/guacamole/*|g' /etc/cont-init.d/* \ sed -i 's|cp -rn /app/guacamole|cp -rn /app/guacamole/*|g' /etc/cont-init.d/* \
\ \
# avoid error # avoid error
@@ -93,7 +95,7 @@ RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.
################ ################
# Add entrypoint # Add entrypoint
ENV S6_STAGE2_HOOK=/ha_entrypoint.sh #ENV S6_STAGE2_HOOK=/ha_entrypoint.sh
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh" ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh"
# Entrypoint modifications # Entrypoint modifications