From b7d4fcf4ad7faf8c27cc9d8a7860da2ada067a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Wed, 23 Oct 2024 15:58:53 +0200 Subject: [PATCH] chore: avoid installing multiple versions of python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei --- containers/Dockerfile.sidecar | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containers/Dockerfile.sidecar b/containers/Dockerfile.sidecar index 9a521de..6093f94 100644 --- a/containers/Dockerfile.sidecar +++ b/containers/Dockerfile.sidecar @@ -8,7 +8,7 @@ # pip will build everything inside /usr/ since this is the case # we should build and then copy every file into a destination that will # then copy into the distroless container -FROM python:3.12.7-slim AS pythonbuilder +FROM python:3.12-slim AS pythonbuilder RUN apt-get update && \ apt-get install -y postgresql-common build-essential && \ /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \ @@ -33,7 +33,7 @@ RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache # Joint process # Now we put everything that was build from the origin into our # distroless container -FROM gcr.io/distroless/python3:debug +FROM gcr.io/distroless/python3-debian12:nonroot ENV SUMMARY="CloudNativePG Barman plugin" \ DESCRIPTION="Container image that provides the barman-cloud sidecar"