Skip to content

Instantly share code, notes, and snippets.

@SlyDen
Last active December 16, 2016 09:35
Show Gist options
  • Save SlyDen/8a5b253e8362d550f830ec25eaa59cb5 to your computer and use it in GitHub Desktop.
Save SlyDen/8a5b253e8362d550f830ec25eaa59cb5 to your computer and use it in GitHub Desktop.
FROM gliderlabs/alpine:3.3
ENTRYPOINT ["/bin/registrator"]
COPY . /go/src/github.com/gliderlabs/registrator
RUN apk-install -t build-deps build-base go git mercurial \
&& cd /go/src/github.com/gliderlabs/registrator \
&& export GOPATH=/go \
&& go get \
&& go build -ldflags "-X main.Version=$(cat VERSION)" -o /bin/registrator \
&& rm -rf /go \
&& apk del --purge build-deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment