2015-12-28 21:31:47 +01:00
|
|
|
FROM jess/consul
|
2015-02-02 21:01:04 +01:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
2015-12-28 21:31:47 +01:00
|
|
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
|
|
|
ENV GOPATH /go
|
2015-07-28 08:46:07 +02:00
|
|
|
|
2015-12-28 21:31:47 +01:00
|
|
|
RUN buildDeps=' \
|
|
|
|
go \
|
|
|
|
git \
|
|
|
|
gcc \
|
|
|
|
libc-dev \
|
|
|
|
libgcc \
|
|
|
|
' \
|
|
|
|
set -x \
|
|
|
|
&& apk update \
|
|
|
|
&& apk add $buildDeps \
|
|
|
|
&& go get github.com/AcalephStorage/consul-alerts \
|
|
|
|
&& mv /go/bin/consul-alerts /usr/bin/ \
|
|
|
|
&& apk del $buildDeps \
|
|
|
|
&& rm -rf /var/cache/apk/* \
|
|
|
|
&& rm -rf /go \
|
|
|
|
&& echo "Build complete."
|
2015-07-28 08:46:07 +02:00
|
|
|
|
2015-02-02 21:01:04 +01:00
|
|
|
|
2015-12-28 21:31:47 +01:00
|
|
|
ENTRYPOINT [ "consul-alerts" ]
|