mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-26 08:02:16 +00:00
Switch Dockerfile to golang:1.5.2
This commit is contained in:
parent
1cde611be2
commit
de41ccfddd
14
Dockerfile
14
Dockerfile
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user