From e9f0479b5d2ce0214cd3e2a52b899f8df5e0a2f7 Mon Sep 17 00:00:00 2001 From: Marek Date: Sat, 12 Oct 2024 18:00:54 +0200 Subject: [PATCH] Remove all packages from the `runtime` stage --- docker/Dockerfile | 4 ---- docker/entrypoint.sh | 4 ---- 2 files changed, 8 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 27775fe9611..39cef822276 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -169,10 +169,6 @@ RUN --mount=type=bind,source=tower-batch-control,target=tower-batch-control \ # from the `release` stage. FROM debian:bookworm-slim AS runtime -RUN apt-get update && apt-get install -y --no-install-recommends gosu - -RUN rm -rf /var/lib/apt/lists/* /tmp/* - COPY --from=release /usr/local/bin/zebrad /usr/local/bin/ COPY --from=release /usr/local/bin/entrypoint.sh /usr/local/bin/ diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 8fa4d30bc6a..0ebe974bfa2 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -379,10 +379,6 @@ monitoring) : ;; *) - if command -v gosu >/dev/null 2>&1; then - exec gosu "$USER" "$@" - else exec "$@" - fi ;; esac