diff --git a/1.11/Dockerfile b/1.11/Dockerfile index 12fb1ef..2edd4b4 100644 --- a/1.11/Dockerfile +++ b/1.11/Dockerfile @@ -20,7 +20,7 @@ RUN mix local.hex --force && \ # if you want them, please copy to your Dockerfile && apt-get update -qq \ && apt-get install --yes --no-install-recommends \ - unzip sudo jq wget curl ca-certificates \ + unzip sudo jq wget curl ca-certificates dumb-init \ && apt-get clean && apt-get autoclean && apt-get -y autoremove --purge \ && rm -rf /var/lib/apt/lists/* /usr/share/doc /root/.cache/ \ && curl -s "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m)-${AWSCLI_VERSION}.zip" -o /tmp/awscliv2.zip \ @@ -30,4 +30,4 @@ RUN mix local.hex --force && \ WORKDIR $SERVICE_ROOT -ENTRYPOINT [ "/entrypoint" ] +ENTRYPOINT [ "dumb-init", "--", "/entrypoint" ] diff --git a/1.12/Dockerfile b/1.12/Dockerfile index 09e51dd..0343d15 100644 --- a/1.12/Dockerfile +++ b/1.12/Dockerfile @@ -20,7 +20,7 @@ RUN mix local.hex --force && \ # if you want them, please copy to your Dockerfile && apt-get update -qq \ && apt-get install --yes --no-install-recommends \ - unzip sudo jq wget curl ca-certificates \ + unzip sudo jq wget curl ca-certificates dumb-init \ && apt-get clean && apt-get autoclean && apt-get -y autoremove --purge \ && rm -rf /var/lib/apt/lists/* /usr/share/doc /root/.cache/ \ && curl -s "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m)-${AWSCLI_VERSION}.zip" -o /tmp/awscliv2.zip \ @@ -30,4 +30,4 @@ RUN mix local.hex --force && \ WORKDIR $SERVICE_ROOT -ENTRYPOINT [ "/entrypoint" ] +ENTRYPOINT [ "dumb-init", "--", "/entrypoint" ] diff --git a/1.13/base/Dockerfile b/1.13/base/Dockerfile index 3d599dc..e8840c1 100644 --- a/1.13/base/Dockerfile +++ b/1.13/base/Dockerfile @@ -11,7 +11,7 @@ ARG TARGETARCH ADD --chmod=755 https://raw.githubusercontent.com/articulate/docker-bootstrap/main/scripts/install_packages /usr/local/bin/install_packages ADD --chmod=755 https://raw.githubusercontent.com/articulate/docker-bootstrap/main/scripts/awscli.sh /tmp/awscli.sh -RUN install_packages make && /tmp/awscli.sh && rm /tmp/awscli.sh \ +RUN install_packages make dumb-init && /tmp/awscli.sh && rm /tmp/awscli.sh \ && groupadd --gid $SERVICE_UID $SERVICE_USER \ && useradd --create-home --shell /bin/bash --gid $SERVICE_UID --uid $SERVICE_UID $SERVICE_USER @@ -28,4 +28,4 @@ RUN mix local.hex --force && mix local.rebar --force # Our entrypoint will pull in our environment variables from Consul and Vault, # and execute whatever command we provided the container. # See https://github.com/articulate/docker-bootstrap -ENTRYPOINT [ "/entrypoint" ] +ENTRYPOINT [ "dumb-init", "--", "/entrypoint" ] diff --git a/1.13/legacy/Dockerfile b/1.13/legacy/Dockerfile index ff9a0e7..501b606 100644 --- a/1.13/legacy/Dockerfile +++ b/1.13/legacy/Dockerfile @@ -20,7 +20,7 @@ RUN mix local.hex --force && \ # if you want them, please copy to your Dockerfile && apt-get update -qq \ && apt-get install --yes --no-install-recommends \ - unzip sudo jq wget curl ca-certificates \ + unzip sudo jq wget curl ca-certificates dumb-init \ && apt-get clean && apt-get autoclean && apt-get -y autoremove --purge \ && rm -rf /var/lib/apt/lists/* /usr/share/doc /root/.cache/ \ && curl -s "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m)-${AWSCLI_VERSION}.zip" -o /tmp/awscliv2.zip \ @@ -30,4 +30,4 @@ RUN mix local.hex --force && \ WORKDIR $SERVICE_ROOT -ENTRYPOINT [ "/entrypoint" ] +ENTRYPOINT [ "dumb-init", "--", "/entrypoint" ]