run as nobody (#1586)

Signed-off-by: Jonathon <jonathon@insidersbyte.com>
This commit is contained in:
Jonathon Mills-Kelly 2018-10-17 11:01:48 +01:00 committed by stuart nelson
parent a19404238b
commit f297445b88
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@ COPY amtool /bin/amtool
COPY alertmanager /bin/alertmanager
COPY examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
RUN mkdir -p /alertmanager && \
chown -R nobody:nogroup etc/alertmanager /alertmanager
USER nobody
EXPOSE 9093
VOLUME [ "/alertmanager" ]
WORKDIR /alertmanager