mirror of
https://github.com/prometheus/prometheus.git
synced 2025-07-02 02:31:14 +00:00
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>
This commit is contained in:
parent
56929ffa42
commit
7a1add6883
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ COPY NOTICE /NOTICE
|
||||||
COPY npm_licenses.tar.bz2 /npm_licenses.tar.bz2
|
COPY npm_licenses.tar.bz2 /npm_licenses.tar.bz2
|
||||||
|
|
||||||
WORKDIR /prometheus
|
WORKDIR /prometheus
|
||||||
RUN chown -R nobody:nobody /etc/prometheus /prometheus
|
RUN chown -R nobody:nobody /etc/prometheus /prometheus && chmod g+w /prometheus
|
||||||
|
|
||||||
USER nobody
|
USER nobody
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue