fix(images): use bookworm for sidecar image (#476)

We were using debian trixie as a building environment for barman-cloud,
but we were still using bookworm as a base image. This caused
inconsistencies in the sidecar image.

Now we always use bookworm.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
Leonardo Cecchi 2025-08-14 22:21:52 +02:00 committed by GitHub
parent e40ba7065a
commit b2645827b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@ RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache
# pip will build everything inside /usr/ since this is the case # pip will build everything inside /usr/ since this is the case
# we should build and then copy every file into a destination that will # we should build and then copy every file into a destination that will
# then copy into the distroless container # then copy into the distroless container
FROM python:3.13-slim AS pythonbuilder FROM python:3.13-slim-bookworm AS pythonbuilder
COPY containers/sidecar-requirements.txt . COPY containers/sidecar-requirements.txt .
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y postgresql-common build-essential && \ apt-get install -y postgresql-common build-essential && \