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="" \