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 <dgl@dgl.cx>
pull/16134/head
David Leadbeater 4 months ago committed by GitHub
parent 56929ffa42
commit 7a1add6883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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

Loading…
Cancel
Save