Skip to content

Commit

Permalink
Run as non-root user for secure environments (oliver006#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotLou authored and oliver006 committed Jan 29, 2019
1 parent 2e64b0f commit 54199d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ FROM scratch as scratch
COPY --from=builder /redis_exporter /redis_exporter
COPY --from=builder /etc/ssl/certs /etc/ssl/certs

# Run as non-root user for secure environments
USER 59000:59000

EXPOSE 9121
ENTRYPOINT [ "/redis_exporter" ]

0 comments on commit 54199d5

Please sign in to comment.