Merge pull request #2859 from Gouthamve/docker-nobody

Dockerfile: Run as nobody
This commit is contained in:
Fabian Reinartz 2017-07-05 16:13:21 +02:00 committed by GitHub
commit 24e9deac71

View file

@ -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