From 346117818cb467e60cca0ea59a39c4aa2751d948 Mon Sep 17 00:00:00 2001 From: Thomas Schuetz Date: Thu, 27 Apr 2023 08:23:32 +0200 Subject: [PATCH] fix: added settings again Signed-off-by: Thomas Schuetz --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6aef2937..f180f4d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,14 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o manager m # 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 +FROM gcr.io/distroless/static:nonroot as production + +LABEL org.opencontainers.image.source="https://github.com/k8sgpt-ai/k8sgpt-operator" \ + org.opencontainers.image.url="https://k8sgpt.ai" \ + org.opencontainers.image.title="k8sgpt" \ + org.opencontainers.image.vendor='The K8sGPT Authors' \ + org.opencontainers.image.licenses='Apache-2.0' + WORKDIR / COPY --from=builder /workspace/manager . USER 65532:65532