Add Dockerfile

Change-Id: Ib544dc1dd0b29ecaf7a777a3bd55982961cbb1ae
This commit is contained in:
Johannes 'fish' Ziemke 2014-10-28 21:25:00 +01:00
parent 0642137a11
commit d2ce4fa3e7
1 changed files with 13 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
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
RUN cd $PKGPATH && go get -d && make build
WORKDIR /alertmanager
ENTRYPOINT [ "/go/src/github.com/prometheus/alertmanager/alertmanager" ]
EXPOSE 9090