alertmanager/Dockerfile

18 lines
614 B
Docker
Raw Permalink Normal View History

FROM prom/busybox:latest
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
2015-11-12 14:03:09 +00:00
COPY amtool /bin/amtool
COPY alertmanager /bin/alertmanager
COPY examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
2015-11-12 14:03:09 +00:00
RUN mkdir -p /alertmanager && \
chown -R nobody:nogroup etc/alertmanager /alertmanager
USER nobody
2015-11-12 14:03:09 +00:00
EXPOSE 9093
VOLUME [ "/alertmanager" ]
WORKDIR /alertmanager
2015-11-12 14:03:09 +00:00
ENTRYPOINT [ "/bin/alertmanager" ]
CMD [ "--config.file=/etc/alertmanager/alertmanager.yml", \
"--storage.path=/alertmanager" ]