diff --git a/arpspoof/Dockerfile b/arpspoof/Dockerfile index bc1a2d6c1..855976df2 100644 --- a/arpspoof/Dockerfile +++ b/arpspoof/Dockerfile @@ -43,11 +43,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 00-global_var.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/bazarr/Dockerfile b/bazarr/Dockerfile index 936631cf4..e68cc6d61 100644 --- a/bazarr/Dockerfile +++ b/bazarr/Dockerfile @@ -53,11 +53,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/bitwarden/Dockerfile b/bitwarden/Dockerfile index f4cb88f4f..b4dfd32f6 100644 --- a/bitwarden/Dockerfile +++ b/bitwarden/Dockerfile @@ -34,7 +34,7 @@ COPY --from=vaultwarden /web-vault /opt/web-vault ################## # Add rootfs -COPY rootfs/ / +COPY rootfs/ / # Manual apps ENV PACKAGES="libmariadb-dev-compat \ @@ -54,11 +54,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -67,7 +69,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/booksonic_air/Dockerfile b/booksonic_air/Dockerfile index 3581d9686..364fbc6ef 100644 --- a/booksonic_air/Dockerfile +++ b/booksonic_air/Dockerfile @@ -53,11 +53,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/cloudcommander/Dockerfile b/cloudcommander/Dockerfile index bd25643c3..4f23e4b7c 100644 --- a/cloudcommander/Dockerfile +++ b/cloudcommander/Dockerfile @@ -45,11 +45,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/code-server/Dockerfile b/code-server/Dockerfile index 3d754f473..ffc0a90d0 100644 --- a/code-server/Dockerfile +++ b/code-server/Dockerfile @@ -52,11 +52,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/elasticsearch/Dockerfile b/elasticsearch/Dockerfile index 9d05aa134..ca8c11a0e 100644 --- a/elasticsearch/Dockerfile +++ b/elasticsearch/Dockerfile @@ -30,7 +30,7 @@ RUN sed -i '5a echo "Data location moved. Please wait while elasticsearch starts && sed -i '5a for files in "data" "config"; do' /usr/local/bin/docker-entrypoint.sh \ && sed -i '5a mkdir -p $NEWHOME' /usr/local/bin/docker-entrypoint.sh \ && sed -i '5a NEWHOME="/data"' /usr/local/bin/docker-entrypoint.sh \ - # Install plugins + # Install plugins && /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch ingest-attachment ################## @@ -41,11 +41,13 @@ RUN sed -i '5a echo "Data location moved. Please wait while elasticsearch starts ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/emby/Dockerfile b/emby/Dockerfile index c354fc92d..23d27eea0 100644 --- a/emby/Dockerfile +++ b/emby/Dockerfile @@ -56,11 +56,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/enedisgateway2mqtt/Dockerfile b/enedisgateway2mqtt/Dockerfile index d127e3a49..b32236987 100644 --- a/enedisgateway2mqtt/Dockerfile +++ b/enedisgateway2mqtt/Dockerfile @@ -45,11 +45,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 00-global_var.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/enedisgateway2mqtt_dev/Dockerfile b/enedisgateway2mqtt_dev/Dockerfile index b8231299f..9a3a86e24 100644 --- a/enedisgateway2mqtt_dev/Dockerfile +++ b/enedisgateway2mqtt_dev/Dockerfile @@ -45,11 +45,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 00-global_var.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/filebrowser/Dockerfile b/filebrowser/Dockerfile index 14545281e..0ad6441f8 100644 --- a/filebrowser/Dockerfile +++ b/filebrowser/Dockerfile @@ -45,11 +45,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/fireflyiii/Dockerfile b/fireflyiii/Dockerfile index 67ef1ef57..6fd5b2e64 100644 --- a/fireflyiii/Dockerfile +++ b/fireflyiii/Dockerfile @@ -49,11 +49,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -61,7 +63,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN chmod 777 /entrypoint.sh ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/fireflyiii_data_importer/Dockerfile b/fireflyiii_data_importer/Dockerfile index 968032c78..9e4974dd4 100644 --- a/fireflyiii_data_importer/Dockerfile +++ b/fireflyiii_data_importer/Dockerfile @@ -50,11 +50,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -62,7 +64,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN chmod 777 /entrypoint.sh ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/flaresolverr/Dockerfile b/flaresolverr/Dockerfile index e55addc53..f56e4e423 100644 --- a/flaresolverr/Dockerfile +++ b/flaresolverr/Dockerfile @@ -44,11 +44,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -56,7 +58,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN chmod 777 /entrypoint.sh ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ] #WORKDIR / #SHELL ["/bin/bash", "-o", "pipefail", "-c"] diff --git a/flexget/Dockerfile b/flexget/Dockerfile index 928d400e5..72c05f875 100644 --- a/flexget/Dockerfile +++ b/flexget/Dockerfile @@ -61,11 +61,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -74,7 +76,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/gazpar2mqtt/Dockerfile b/gazpar2mqtt/Dockerfile index a52873ac0..699ae2c30 100644 --- a/gazpar2mqtt/Dockerfile +++ b/gazpar2mqtt/Dockerfile @@ -45,11 +45,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/grav/Dockerfile b/grav/Dockerfile index 6da5c948a..5e6df75c5 100644 --- a/grav/Dockerfile +++ b/grav/Dockerfile @@ -56,11 +56,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/inadyn/Dockerfile b/inadyn/Dockerfile index a1f7a96ab..a648336a2 100644 --- a/inadyn/Dockerfile +++ b/inadyn/Dockerfile @@ -50,7 +50,7 @@ RUN apk add --no-cache \ go \ npm \ xz \ - # && npm install mustache-cli --global + # && npm install mustache-cli --global && apk upgrade --no-cache &&\ apk add --no-cache --virtual .build-deps\ build-base\ @@ -65,11 +65,13 @@ RUN apk add --no-cache \ ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/jackett/Dockerfile b/jackett/Dockerfile index fa956e51f..f9aae7a2c 100644 --- a/jackett/Dockerfile +++ b/jackett/Dockerfile @@ -5,7 +5,7 @@ # _.-` ('>.-`"""-. # '.--'` _'` _ .--.) # -' '-.-';` ` -# ' - _.' ``'--. +# ' - _.' ``'--. # '---` .-'""` # /` @@ -54,11 +54,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/jellyfin/Dockerfile b/jellyfin/Dockerfile index 755701618..68590c92a 100644 --- a/jellyfin/Dockerfile +++ b/jellyfin/Dockerfile @@ -52,11 +52,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -65,7 +67,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/joal/Dockerfile b/joal/Dockerfile index 8489cf1d0..5148ff7d8 100644 --- a/joal/Dockerfile +++ b/joal/Dockerfile @@ -21,7 +21,7 @@ FROM anthonyraymond/joal:$BUILD_UPSTREAM # 2 Modify Image # ################## -#Install Joal +#Install Joal RUN \ if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ curl -s -S -J -L -o /tmp/joal.tar.gz $(curl -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz") >/dev/null &&\ @@ -58,11 +58,13 @@ ARG BUILD_UPSTREAM="2.1.29" ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -70,7 +72,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN chmod 777 /entrypoint.sh ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/joplin/Dockerfile b/joplin/Dockerfile index 32ff1662a..9a3dc6e27 100644 --- a/joplin/Dockerfile +++ b/joplin/Dockerfile @@ -46,11 +46,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -58,7 +60,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN chmod 777 /entrypoint.sh ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ] #WORKDIR / #SHELL ["/bin/bash", "-o", "pipefail", "-c"] diff --git a/lidarr/Dockerfile b/lidarr/Dockerfile index 14258e930..a6fd35c82 100644 --- a/lidarr/Dockerfile +++ b/lidarr/Dockerfile @@ -56,11 +56,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -69,7 +71,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/mealie/Dockerfile b/mealie/Dockerfile index f369154f8..f1927d39f 100644 --- a/mealie/Dockerfile +++ b/mealie/Dockerfile @@ -47,11 +47,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -59,10 +61,10 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN \ # Add custom instructions to run.sh - sed -i '1d' /app/mealie/run.sh \ + sed -i '1d' /app/mealie/run.sh \ && cat /app/mealie/run.sh >> /run.txt \ && cat /run.txt > /app/mealie/run.sh \ - && chmod +x /app/mealie/run.sh + && chmod +x /app/mealie/run.sh ############ # 5 Labels # diff --git a/mylar3/Dockerfile b/mylar3/Dockerfile index 9c1a38a7e..dff5ce60b 100644 --- a/mylar3/Dockerfile +++ b/mylar3/Dockerfile @@ -51,11 +51,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -64,7 +66,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 91cba5f48..a15846cc4 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -27,7 +27,7 @@ ENV NEXTCLOUD_PATH="/data/config/www/nextcloud" RUN \ # Remove upstream files - rm -rf /etc/cont-init.d/10-adduser /etc/cont-init.d/30-keygen /etc/cont-init.d/40-config /etc/cont-init.d/50-install /etc/cont-init.d/60-memcache /etc/cont-init.d/70-aliases \ + rm -rf /etc/cont-init.d/10-adduser /etc/cont-init.d/30-keygen /etc/cont-init.d/40-config /etc/cont-init.d/50-install /etc/cont-init.d/60-memcache /etc/cont-init.d/70-aliases \ # Make permissions && chmod +x /defaults/nextcloud-perms.sh \ # default folders @@ -67,11 +67,13 @@ VOLUME ["/share", "/ssl", "/data", "/media"] ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -80,7 +82,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/nzbget/Dockerfile b/nzbget/Dockerfile index 5f0d5a025..5ea0d737e 100644 --- a/nzbget/Dockerfile +++ b/nzbget/Dockerfile @@ -53,11 +53,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -66,7 +68,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/ombi/Dockerfile b/ombi/Dockerfile index c80815db2..11e00c521 100644 --- a/ombi/Dockerfile +++ b/ombi/Dockerfile @@ -54,11 +54,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -67,7 +69,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/organizr/Dockerfile b/organizr/Dockerfile index 5d73d24c0..974d3e817 100644 --- a/organizr/Dockerfile +++ b/organizr/Dockerfile @@ -58,11 +58,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/paperless_ng/Dockerfile b/paperless_ng/Dockerfile index 60e660a44..e58ffb45c 100644 --- a/paperless_ng/Dockerfile +++ b/paperless_ng/Dockerfile @@ -58,11 +58,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -71,7 +73,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/papermerge/Dockerfile b/papermerge/Dockerfile index d46710744..c111e61df 100644 --- a/papermerge/Dockerfile +++ b/papermerge/Dockerfile @@ -41,7 +41,7 @@ COPY rootfs/ / ENV PACKAGES="jq \ curl \ cifs-utils \ - keyutils" + keyutils" # Automatic apps & bashio RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ @@ -55,11 +55,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -68,7 +70,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/photoprism/Dockerfile b/photoprism/Dockerfile index f83718f36..4417e4d3d 100644 --- a/photoprism/Dockerfile +++ b/photoprism/Dockerfile @@ -62,11 +62,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -74,7 +76,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN chmod 777 /entrypoint.sh ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/piwigo/Dockerfile b/piwigo/Dockerfile index 7b4530cb7..249422793 100644 --- a/piwigo/Dockerfile +++ b/piwigo/Dockerfile @@ -52,11 +52,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -65,7 +67,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/plex/Dockerfile b/plex/Dockerfile index 8be001869..66dc34b89 100644 --- a/plex/Dockerfile +++ b/plex/Dockerfile @@ -67,11 +67,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -80,7 +82,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/portainer/Dockerfile b/portainer/Dockerfile index 0700f2ef9..9366c17a8 100644 --- a/portainer/Dockerfile +++ b/portainer/Dockerfile @@ -65,11 +65,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -78,7 +80,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/prowlarr/Dockerfile b/prowlarr/Dockerfile index 8a264026f..5b3f98599 100644 --- a/prowlarr/Dockerfile +++ b/prowlarr/Dockerfile @@ -27,8 +27,8 @@ RUN \ && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \ && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \ \ - # Correct permissions - && sed -i 's|/config|-R /config/addons_config/prowlarr|g' /etc/cont-init.d/10-adduser \ + # Correct permissions + && sed -i 's|/config|-R /config/addons_config/prowlarr|g' /etc/cont-init.d/10-adduser \ && sed -i 's= /config=/config/addons_config/prowlarr || true=g' /etc/cont-init.d/30-config \ && sed -i 's|/config|/config/addons_config/prowlarr|g' /etc/services.d/prowlarr/run @@ -57,11 +57,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -70,7 +72,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/qbittorrent/Dockerfile b/qbittorrent/Dockerfile index 423f68cfd..0fbbfd2c6 100644 --- a/qbittorrent/Dockerfile +++ b/qbittorrent/Dockerfile @@ -15,7 +15,7 @@ ARG BUILD_FROM ARG BUILD_VERSION -ARG BUILD_UPSTREAM="14.3.9.99202110311443-7435-01519b5e7ubuntu20.04.1-ls166" +ARG BUILD_UPSTREAM="14.3.9.99202110311443-7435-01519b5e7ubuntu20.04.1-ls166" FROM ${BUILD_FROM}-$BUILD_UPSTREAM ################## @@ -37,15 +37,15 @@ RUN \ && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \ && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \ \ - # Correct permissions - && sed -i 's=/config=/config/qBittorrent || true=g' /etc/cont-init.d/10-adduser \ + # Correct permissions + && sed -i 's=/config=/config/qBittorrent || true=g' /etc/cont-init.d/10-adduser \ && sed -i 's= /config=/config/qBittorrent || true=g' /etc/cont-init.d/30-config \ \ # Set download folder to /share && sed -i 's|/downloads/|/share/qBittorrent/|g' /defaults/qBittorrent.conf \ \ # Remove fixed folders, allows connection to webUI - && sed '11,13d' /defaults/qBittorrent.conf \ + && sed '11,13d' /defaults/qBittorrent.conf \ && echo 'WebUI\HostHeaderValidation=false' >> /defaults/qBittorrent.conf \ && echo 'WebUI\LocalHostAuth=false' >> /defaults/qBittorrent.conf || true @@ -55,7 +55,7 @@ RUN \ # Copy local files COPY rootfs/ / -# Manual apps +# Manual apps ARG PACKAGES="" # Automatic apps & bashio @@ -70,11 +70,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh 90-dns_set.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/radarr/Dockerfile b/radarr/Dockerfile index d5597e896..37e995072 100644 --- a/radarr/Dockerfile +++ b/radarr/Dockerfile @@ -58,11 +58,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -71,7 +73,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/readarr/Dockerfile b/readarr/Dockerfile index 6ccfbb3cf..6cc84a267 100644 --- a/readarr/Dockerfile +++ b/readarr/Dockerfile @@ -52,11 +52,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -65,7 +67,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/requestrr/Dockerfile b/requestrr/Dockerfile index 06425bccf..c6e6e7da6 100644 --- a/requestrr/Dockerfile +++ b/requestrr/Dockerfile @@ -56,11 +56,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -69,7 +71,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/resiliosync/Dockerfile b/resiliosync/Dockerfile index 30306146e..850725196 100644 --- a/resiliosync/Dockerfile +++ b/resiliosync/Dockerfile @@ -66,11 +66,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -79,7 +81,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/scrutiny/Dockerfile b/scrutiny/Dockerfile index 2bec1d0de..5803da0cf 100644 --- a/scrutiny/Dockerfile +++ b/scrutiny/Dockerfile @@ -31,7 +31,7 @@ RUN \ && sed -i 's| /config| /data|g' /etc/cont-init.d/* \ && sed -i 's| /config| /data|g' /etc/logrotate.d/scrutiny \ && sed -i 's| /config| /data|g' /etc/crontabs/root \ - # correct url paths + # correct url paths && grep -rl '/web/' /app/scrutiny-web/ | xargs sed -i 's|/web/|./|g' ################## @@ -59,11 +59,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/sonarr/Dockerfile b/sonarr/Dockerfile index 0924ba6b3..ef7cef46d 100644 --- a/sonarr/Dockerfile +++ b/sonarr/Dockerfile @@ -57,11 +57,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -70,7 +72,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/tandoor_recipes/Dockerfile b/tandoor_recipes/Dockerfile index 27f7386f1..7a629774f 100644 --- a/tandoor_recipes/Dockerfile +++ b/tandoor_recipes/Dockerfile @@ -44,11 +44,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/teamspeak/Dockerfile b/teamspeak/Dockerfile index f31bd2c76..0c407fcb6 100644 --- a/teamspeak/Dockerfile +++ b/teamspeak/Dockerfile @@ -25,7 +25,7 @@ RUN mkdir -p /data \ ENV PATH "${PATH}:/data" -VOLUME [ "/data:/var/ts3server/" ] +VOLUME [ "/data:/var/ts3server/" ] ################## # 3 Install apps # @@ -35,11 +35,13 @@ VOLUME [ "/data:/var/ts3server/" ] ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -48,7 +50,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/transmission/Dockerfile b/transmission/Dockerfile index 10615fd3a..34522a244 100644 --- a/transmission/Dockerfile +++ b/transmission/Dockerfile @@ -56,11 +56,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -69,7 +71,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/ubooquity/Dockerfile b/ubooquity/Dockerfile index 4a82e5d69..91a06d257 100644 --- a/ubooquity/Dockerfile +++ b/ubooquity/Dockerfile @@ -64,11 +64,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -77,7 +79,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/webtop/Dockerfile b/webtop/Dockerfile index e4210939b..ddf5ea000 100644 --- a/webtop/Dockerfile +++ b/webtop/Dockerfile @@ -23,7 +23,7 @@ FROM ${BUILD_FROM}ubuntu-mate # Allow UID and GID setting RUN sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \ - && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \ + && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \ && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \ # Change home folder location && sed -i 's|/config|/share/webtop|g' /defaults/* \ @@ -42,7 +42,7 @@ RUN apt-get update && apt-get dist-upgrade && apt-get install -yqq libgles2-mesa COPY rootfs/ / # Manual apps -ENV PACKAGES="" +ENV PACKAGES="" # Automatic apps & bashio RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ @@ -56,11 +56,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh 90-dns_set.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -69,7 +71,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/webtrees/Dockerfile b/webtrees/Dockerfile index 347a7da3a..2d7881354 100644 --- a/webtrees/Dockerfile +++ b/webtrees/Dockerfile @@ -54,11 +54,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -66,7 +68,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN chmod 777 /entrypoint.sh ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/wger/Dockerfile b/wger/Dockerfile index 14f3000c7..78700b6c0 100644 --- a/wger/Dockerfile +++ b/wger/Dockerfile @@ -49,11 +49,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -62,7 +64,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############ diff --git a/whoogle/Dockerfile b/whoogle/Dockerfile index ec3bd68bd..afcaea967 100644 --- a/whoogle/Dockerfile +++ b/whoogle/Dockerfile @@ -45,11 +45,13 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -57,7 +59,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ RUN chmod 777 /entrypoint.sh ENTRYPOINT [ "/usr/bin/env" ] -CMD [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ] ############ # 5 Labels # diff --git a/xteve/Dockerfile b/xteve/Dockerfile index 13a23a7ca..2abaabb5d 100644 --- a/xteve/Dockerfile +++ b/xteve/Dockerfile @@ -30,11 +30,13 @@ CMD ["-config", "/data", "-port", "34400"] ARG MODULES="00-banner.sh" # Automatic modules download -RUN mkdir -p /tmpscripts /etc/cont-init.d && \ - for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ - rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash); fi && \ +    if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \ +    mkdir -p /tmpscripts /etc/cont-init.d && \ +    for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done  && \ +    if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ +    if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ +    rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # @@ -43,7 +45,7 @@ RUN mkdir -p /tmpscripts /etc/cont-init.d && \ #RUN chmod 777 /entrypoint.sh #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] -#CMD [ "/entrypoint.sh" ] +#CMD [ "/entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"] ############