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