mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
bd9cdb6ff1
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
26 lines
469 B
Docker
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" ]
|