Switch Dockerfile to golang:1.5.2

This commit is contained in:
Fabian Reinartz 2015-12-09 14:31:01 +01:00
parent 1cde611be2
commit de41ccfddd

View File

@ -1,17 +1,15 @@
FROM sdurrheimer/alpine-glibc
FROM golang:1.5.2
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
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" ]