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 10, 2019
1 parent d71e708 commit 9161e77
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
FROM alpine:3.9
FROM scratch

COPY kube-state-metrics /

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

RUN adduser -D kube-state-metrics

USER kube-state-metrics

EXPOSE 8080 8081

0 comments on commit 9161e77

Please sign in to comment.