alertmanager/Dockerfile
Jonathon Mills-Kelly f297445b88 run as nobody (#1586)
Signed-off-by: Jonathon <jonathon@insidersbyte.com>
2018-10-17 12:01:48 +02:00

18 lines
614 B
Docker

FROM prom/busybox:latest
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
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
ENTRYPOINT [ "/bin/alertmanager" ]
CMD [ "--config.file=/etc/alertmanager/alertmanager.yml", \
"--storage.path=/alertmanager" ]