diff --git a/Dockerfile b/Dockerfile index 7520cafe..76df78df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.16 AS builder ADD . /app WORKDIR /app -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO11MODULE=on go build -mod=vendor -a -o /main . +RUN CGO_ENABLED=0 GOOS=linux GO11MODULE=on go build -mod=vendor -a -o /main . FROM gcr.io/distroless/base COPY --from=builder --chown=nonroot:nonroot /main /kubernetes-event-exporter