mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 13:23:09 +01:00
chore: avoid installing multiple versions of python
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
This commit is contained in:
parent
6e41a87f83
commit
b7d4fcf4ad
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user