From 054d07878d31e8fae83c3d984afce4de63f118bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Tue, 21 Oct 2025 16:55:39 +0200 Subject: [PATCH] Dockerfile: Do not install recommended pkgs (#2215) --- Dockerfile | 4 ++-- Dockerfile.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 851b2017..f48aed70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN case "${TARGETPLATFORM}" in \ esac RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ - apt-get install -yq build-essential libclang-16-dev \ + apt-get install -yq --no-install-recommends build-essential libclang-16-dev \ g++-aarch64-linux-gnu binutils-aarch64-linux-gnu \ g++-x86-64-linux-gnu binutils-x86-64-linux-gnu RUN rustup target add "$(cat /target.txt)" @@ -32,7 +32,7 @@ FROM docker.io/debian:bookworm-slim WORKDIR /opt/stalwart RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ - apt-get install -yq ca-certificates + apt-get install -yq --no-install-recommends ca-certificates COPY --from=builder /output/stalwart /usr/local/bin COPY --from=builder /output/stalwart-cli /usr/local/bin COPY ./resources/docker/entrypoint.sh /usr/local/bin/entrypoint.sh diff --git a/Dockerfile.build b/Dockerfile.build index d13f7c18..8e2f5ccb 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -142,7 +142,7 @@ FROM --platform=$TARGETPLATFORM docker.io/library/debian:bookworm-slim AS gnu WORKDIR /opt/stalwart RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ - apt-get install -yq ca-certificates tzdata + apt-get install -yq --no-install-recommends ca-certificates tzdata COPY --from=builder /app/artifact/stalwart /usr/local/bin COPY --from=builder /app/artifact/stalwart-cli /usr/local/bin COPY ./resources/docker/entrypoint.sh /usr/local/bin/entrypoint.sh