From 8025f7af6e82bce7a085e83f459a4a69900b3cc8 Mon Sep 17 00:00:00 2001 From: zhangguanzhang Date: Wed, 18 Oct 2023 15:04:56 +0800 Subject: [PATCH] add noonroot in containers --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 5794baa4..f10107c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,5 @@ ARG BIN_DIR=.build/linux-${TARGETARCH}/ COPY ${BIN_DIR}/kafka_exporter /bin/kafka_exporter EXPOSE 9308 +USER nobody ENTRYPOINT [ "/bin/kafka_exporter" ]