From 7a1add6883aded549223d1959c091ac234fcdb00 Mon Sep 17 00:00:00 2001 From: David Leadbeater Date: Fri, 7 Mar 2025 21:33:04 +1100 Subject: [PATCH] build: Make /prometheus group writable (#16073) As outlined in #3441 this is the minimal change needed to allow changing UID/GID in Docker when combined with a supplementary group. Signed-off-by: David Leadbeater --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1e46a62f95..31e863d8a0 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 chown -R nobody:nobody /etc/prometheus /prometheus && chmod g+w /prometheus USER nobody EXPOSE 9090