mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 22:07:27 -08:00
Set Docker permissions to user and group ID 0
Signed-off-by: Maxim Berezin <mberezin@pm.me>
This commit is contained in:
parent
48287b15d4
commit
0dc4f3d561
|
@ -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 chgrp -R 0 /etc/prometheus /prometheus && chmod -R g=u /etc/prometheus /prometheus
|
||||||
|
|
||||||
USER nobody
|
USER nobody
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
|
|
Loading…
Reference in a new issue