Last active
March 29, 2019 23:18
-
-
Save c1982/ed980e1f3d4d49a6656c1ee12aa8720e to your computer and use it in GitHub Desktop.
Example for my blog post
This file contains 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:1.11.6 as builder | |
ARG VERSION | |
ENV CGO_ENABLED=0 | |
WORKDIR $GOPATH/src/md5go | |
COPY . . | |
RUN go install -a --installsuffix cgo -ldflags "-X main.Version=${VERSION}" ./... | |
FROM iron/base | |
COPY --from=builder /go/bin/md5go /usr/local/bin | |
RUN chmod a+x /usr/local/bin/md5go | |
ENTRYPOINT ["/usr/local/bin/md5go"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment