mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update Dockerfile with commented lines and sed modifications
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user