From d2ce4fa3e7b34fde8edecfa4fcc0fc998d3f06a7 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Tue, 28 Oct 2014 21:25:00 +0100 Subject: [PATCH] Add Dockerfile Change-Id: Ib544dc1dd0b29ecaf7a777a3bd55982961cbb1ae --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile 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