From f0dc4143c75d049ae1670199e4d48a8d321ed4bc Mon Sep 17 00:00:00 2001 From: Ryan Brainard <966764+ryanbrainard@users.noreply.github.com> Date: Thu, 3 Mar 2022 10:55:48 +0900 Subject: [PATCH] Switch to gcr.io/distroless/static:nonroot --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index af3b9a43..5bd3ef11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ADD . /app WORKDIR /app RUN CGO_ENABLED=0 GOOS=linux GO11MODULE=on go build -mod=vendor -a -o /main . -FROM gcr.io/distroless/base +FROM gcr.io/distroless/static:nonroot COPY --from=builder --chown=nonroot:nonroot /main /kubernetes-event-exporter USER nonroot