Merge pull request #2859 from Gouthamve/docker-nobody
Dockerfile: Run as nobody
This commit is contained in:
commit
24e9deac71
|
@ -8,7 +8,10 @@ COPY console_libraries/ /usr/share/prometheus/console_librar
|
|||
COPY consoles/ /usr/share/prometheus/consoles/
|
||||
|
||||
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/
|
||||
RUN mkdir -p /prometheus && \
|
||||
chown -R nobody:nogroup etc/prometheus /prometheus
|
||||
|
||||
USER nobody
|
||||
EXPOSE 9090
|
||||
VOLUME [ "/prometheus" ]
|
||||
WORKDIR /prometheus
|
||||
|
|
Loading…
Reference in New Issue