From bb89d46f774480090a17f90f45b25bb13f05ce49 Mon Sep 17 00:00:00 2001 From: "Jonathan Gonzalez V." Date: Tue, 10 Dec 2024 13:11:10 +0100 Subject: [PATCH] chore(containers): use ubi-micro for operator image (#61) Signed-off-by: Jonathan Gonzalez V. --- containers/Dockerfile.plugin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/containers/Dockerfile.plugin b/containers/Dockerfile.plugin index b35fcb6..14834f3 100644 --- a/containers/Dockerfile.plugin +++ b/containers/Dockerfile.plugin @@ -27,9 +27,9 @@ ENV GOMODCACHE=/go/pkg/mod 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 -# Use distroless as minimal base image to package the manager binary -# Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM gcr.io/distroless/static:nonroot +# Use a minimal base image to package the manager binary +# Refer to https://www.redhat.com/en/blog/introduction-ubi-micro for more details +FROM registry.access.redhat.com/ubi9/ubi-micro ENV SUMMARY="CloudNativePG Barman plugin" \ DESCRIPTION="Container image that provides the barman-cloud plugin" @@ -38,7 +38,7 @@ LABEL summary="$SUMMARY" \ description="$DESCRIPTION" \ io.k8s.display-name="$SUMMARY" \ io.k8s.description="$DESCRIPTION" \ - name="CloudNativePG Barman plugin" \ + name="$SUMMARY" \ vendor="CloudNativePG Contributors" \ url="https://cloudnative-pg.io/" \ version="" \