dockerfiles/consul-alerts/Dockerfile

26 lines
469 B
Docker
Raw Normal View History

FROM jess/consul
2015-02-02 21:01:04 +01:00
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."
2015-02-02 21:01:04 +01:00
ENTRYPOINT [ "consul-alerts" ]