From 238270f4f94d408de919a0bd7df061333102c469 Mon Sep 17 00:00:00 2001 From: Christoph Mewes Date: Fri, 10 Jan 2025 10:25:19 +0100 Subject: [PATCH] set labels on the final container image On-behalf-of: @SAP christoph.mewes@sap.com --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a321421..3f385dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,15 +16,14 @@ FROM --platform=${BUILDPLATFORM} docker.io/golang:1.23.4 AS builder ARG TARGETOS ARG TARGETARCH -LABEL org.opencontainers.image.source=https://github.com/kcp-dev/api-syncagent -LABEL org.opencontainers.image.description="A Kubernetes agent to synchronize APIs and their objects between Kubernetes clusters and kcp" -LABEL org.opencontainers.image.licenses=Apache-2.0 - WORKDIR /go/src/github.com/kcp-dev/api-syncagent COPY . . RUN GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make clean api-syncagent FROM gcr.io/distroless/static-debian12:debug +LABEL org.opencontainers.image.source=https://github.com/kcp-dev/api-syncagent +LABEL org.opencontainers.image.description="A Kubernetes agent to synchronize APIs and their objects between Kubernetes clusters and kcp" +LABEL org.opencontainers.image.licenses=Apache-2.0 COPY --from=builder /go/src/github.com/kcp-dev/api-syncagent/_build/api-syncagent /usr/local/bin/api-syncagent