Skip to content

Commit

Permalink
set non-root user in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangguanzhang authored Nov 3, 2023
1 parent 5ae7040 commit 67ffc49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*

ENTRYPOINT ["/usr/local/bin/clickhouse_exporter"]
CMD ["-scrape_uri=http://localhost:8123"]
USER nobody
EXPOSE 9116

0 comments on commit 67ffc49

Please sign in to comment.