Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from gardener/distroless
Browse files Browse the repository at this point in the history
Change base image from alpine to distroless
  • Loading branch information
istvanballok authored Sep 7, 2022
2 parents fa1848b + d4deccd commit 27675a9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 27675a9

Please sign in to comment.