diff --git a/Dockerfile b/Dockerfile index d5d713ee..17512698 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,15 @@ -FROM sdurrheimer/alpine-glibc +FROM golang:1.5.2 MAINTAINER The Prometheus Authors -WORKDIR /gopath/src/github.com/prometheus/alertmanager -COPY . /gopath/src/github.com/prometheus/alertmanager +WORKDIR /go/src/github.com/prometheus/alertmanager +COPY . /go/src/github.com/prometheus/alertmanager -RUN apk add --update -t build-deps tar openssl git make bash gcc libc-dev \ - && source ./scripts/goenv.sh /go /gopath \ +RUN apt-get install make \ && make build \ && cp alertmanager /bin/ \ && mkdir -p /etc/alertmanager/template \ - && mv ./doc/examples/simple.yml /etc/alertmanager/config.yml \ - && apk del --purge build-deps gcc \ - && rm -rf /go /gopath /var/cache/apk/* + && mv ./doc/examples/simple.yml /etc/alertmanager/config.yml + && rm -rf /go EXPOSE 9093 VOLUME [ "/alertmanager" ]