From d4deccd9f2bc6de8956571ee58932ca659750352 Mon Sep 17 00:00:00 2001 From: Dimitar Mirchev Date: Fri, 15 Jul 2022 16:16:59 +0300 Subject: [PATCH] Change base image from alpine to distroless --- build/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index dd76ec00..e3fad2c5 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -18,10 +18,8 @@ COPY . . RUN make build -FROM alpine:3.10.3 +FROM gcr.io/distroless/static-debian11:nonroot +COPY --from=builder /go/src/github.com/gardener/vpa-exporter/bin/vpa-exporter /vpa-exporter -RUN apk add --update bash curl - -COPY --from=builder /go/src/github.com/gardener/vpa-exporter/bin/vpa-exporter /usr/local/bin/vpa-exporter WORKDIR / -ENTRYPOINT ["/usr/local/bin/vpa-exporter"] +ENTRYPOINT ["/vpa-exporter"]