Created
September 14, 2017 20:30
-
-
Save 0xAhmed/57efa23730650bc3eb21ab7d0fb7cebf to your computer and use it in GitHub Desktop.
Using Docker build arguments
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 golang:latest | |
| # If RELEASE is not passed as a build arg, go with master | |
| ARG RELEASE=master | |
| WORKDIR /go | |
| ENV GOBIN $GOPATH/bin | |
| RUN echo "Using Hacher ${RELEASE}" \ | |
| && wget -q https://github.com/Dockbit/hacher/archive/${RELEASE}.tar.gz -O hacher-${RELEASE}.tar.gz \ | |
| && tar xf hacher-${RELEASE}.tar.gz \ | |
| && cd hacher-* \ | |
| && make install && make build \ | |
| && cp /go/bin/hacher-* /hacher | |
| ENTRYPOINT ["/hacher"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment