From 67ffc493aed589305ea7415c1aa2173e606813af Mon Sep 17 00:00:00 2001 From: zhangguanzhang Date: Fri, 3 Nov 2023 11:21:05 +0800 Subject: [PATCH] set non-root user in Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 8ca374b..f469bbb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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