Last active
December 16, 2016 09:35
-
-
Save SlyDen/8a5b253e8362d550f830ec25eaa59cb5 to your computer and use it in GitHub Desktop.
Go on Alpine example https://github.com/gliderlabs/registrator/blob/master/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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