Skip to content

Commit

Permalink
run as nobody (#1586)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathon <jonathon@insidersbyte.com>
  • Loading branch information
InsidersByte authored and stuartnelson3 committed Oct 17, 2018
1 parent a194042 commit f297445
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f297445

Please sign in to comment.