Skip to content

Commit

Permalink
Dockerfile: Set user to nobody
Browse files Browse the repository at this point in the history
Simplifies Dockerfile and helm chart defaults to nobody for a long time.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
  • Loading branch information
mrueg committed Jul 16, 2019
1 parent f1cee0c commit 655f89b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
@@ -1,14 +1,8 @@
FROM alpine:3.9

RUN adduser -D kube-state-metrics

FROM gcr.io/distroless/static

COPY kube-state-metrics /

COPY --from=0 /etc/passwd /etc/passwd

USER kube-state-metrics
USER nobody

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

Expand Down

0 comments on commit 655f89b

Please sign in to comment.