chore: review

Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
This commit is contained in:
Niccolò Fei 2025-08-18 11:29:43 +02:00 committed by Marco Nenciarini
parent f467bc887f
commit a11aec6e32
No known key found for this signature in database
GPG Key ID: 589F03F01BA55038

View File

@ -33,9 +33,9 @@ COPY ../internal/ internal/
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \ RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/manager/main.go CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/manager/main.go
# Use plug-barman-cloud-base to get the dependencies # Use plugin-barman-cloud-base to get the dependencies.
# pip will build everything inside /usr/ since this is the case # pip will build everything inside /usr, so we copy every file into a new
# Copy every file into a destination that will then copy into the distroless container # destination that will then be copied into the distroless container
FROM ghcr.io/cloudnative-pg/plugin-barman-cloud-base:latest AS pythonbuilder FROM ghcr.io/cloudnative-pg/plugin-barman-cloud-base:latest AS pythonbuilder
# Prepare a new /usr/ directory with the files we'll need in the final image # Prepare a new /usr/ directory with the files we'll need in the final image
RUN mkdir /new-usr/ && \ RUN mkdir /new-usr/ && \