dockerfiles/consul-alerts/Dockerfile
Jessica Frazelle bd9cdb6ff1
update consul dockerfile
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-12-28 12:31:47 -08:00

26 lines
469 B
Docker

FROM jess/consul
MAINTAINER Jessica Frazelle <jess@docker.com>
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
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."
ENTRYPOINT [ "consul-alerts" ]