diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..9ca1caf4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM golang:latest +MAINTAINER Prometheus Team + +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