mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-14 02:15:27 +00:00
20 lines
528 B
Docker
20 lines
528 B
Docker
FROM golang:latest
|
|
MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
|
|
|
|
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 \
|
|
&& rm -rf $PKGPATH/.deps \
|
|
&& mkdir /alertmanager \
|
|
&& chown nobody /alertmanager
|
|
|
|
USER nobody
|
|
WORKDIR /alertmanager
|
|
ENTRYPOINT [ "/go/src/github.com/prometheus/alertmanager/alertmanager" ]
|
|
EXPOSE 9093
|