2014-10-28 20:25:00 +00:00
|
|
|
FROM golang:latest
|
|
|
|
MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
|
|
|
|
|
|
|
|
RUN apt-get -qy update && apt-get -qy install vim-common
|
|
|
|
ENV PKGPATH $GOPATH/src/github.com/prometheus/alertmanager
|
|
|
|
ENV GOROOT /usr/src/go
|
|
|
|
|
|
|
|
ADD . $PKGPATH
|
2015-06-02 22:16:22 +00:00
|
|
|
RUN cd $PKGPATH \
|
|
|
|
&& go get -d \
|
|
|
|
&& make \
|
|
|
|
&& rm -rf $PKGPATH/.deps \
|
|
|
|
&& mkdir /alertmanager \
|
|
|
|
&& chown nobody /alertmanager
|
2014-10-28 20:25:00 +00:00
|
|
|
|
2015-03-22 19:14:20 +00:00
|
|
|
USER nobody
|
2014-10-28 20:25:00 +00:00
|
|
|
WORKDIR /alertmanager
|
|
|
|
ENTRYPOINT [ "/go/src/github.com/prometheus/alertmanager/alertmanager" ]
|
2015-02-10 11:41:19 +00:00
|
|
|
EXPOSE 9093
|