From 0dc4f3d561bf00e5b0bc91d65c802600864c48c6 Mon Sep 17 00:00:00 2001 From: Maxim Berezin Date: Mon, 2 Dec 2024 16:59:09 -0500 Subject: [PATCH] Set Docker permissions to user and group ID 0 Signed-off-by: Maxim Berezin --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1e46a62f95..36f94b98f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ COPY NOTICE /NOTICE COPY npm_licenses.tar.bz2 /npm_licenses.tar.bz2 WORKDIR /prometheus -RUN chown -R nobody:nobody /etc/prometheus /prometheus +RUN chgrp -R 0 /etc/prometheus /prometheus && chmod -R g=u /etc/prometheus /prometheus USER nobody EXPOSE 9090