alertmanager/Dockerfile

20 lines
628 B
Docker
Raw Normal View History

2015-12-09 13:31:01 +00:00
FROM golang:1.5.2
2015-11-12 14:03:09 +00:00
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
2015-12-09 13:31:01 +00:00
WORKDIR /go/src/github.com/prometheus/alertmanager
COPY . /go/src/github.com/prometheus/alertmanager
2015-11-12 14:03:09 +00:00
2015-12-09 13:31:01 +00:00
RUN apt-get install make \
2015-12-09 11:01:58 +00:00
&& make build \
2015-11-12 14:03:09 +00:00
&& cp alertmanager /bin/ \
&& mkdir -p /etc/alertmanager/template \
2015-12-09 13:31:26 +00:00
&& mv ./doc/examples/simple.yml /etc/alertmanager/config.yml \
2015-12-09 13:31:01 +00:00
&& rm -rf /go
2015-11-12 14:03:09 +00:00
EXPOSE 9093
VOLUME [ "/alertmanager" ]
WORKDIR /alertmanager
ENTRYPOINT [ "/bin/alertmanager" ]
CMD [ "-config.file=/etc/alertmanager/config.yml", \
2015-12-02 11:21:56 +00:00
"-storage.path=/alertmanager" ]