Skip to content

Commit

Permalink
use distroless/static as base image to further reduce image size and …
Browse files Browse the repository at this point in the history
…increase security
  • Loading branch information
tariq1890 committed May 14, 2019
1 parent d71e708 commit 76a285d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ FROM alpine:3.9

COPY kube-state-metrics /

ENTRYPOINT ["/kube-state-metrics", "--port=8080", "--telemetry-port=8081"]

RUN adduser -D kube-state-metrics

FROM gcr.io/distroless/static

COPY --from=0 /kube-state-metrics /

USER kube-state-metrics

ENTRYPOINT ["/kube-state-metrics", "--port=8080", "--telemetry-port=8081"]

EXPOSE 8080 8081

0 comments on commit 76a285d

Please sign in to comment.