Skip to content

Instantly share code, notes, and snippets.

@c1982 c1982/Dockerfile
Last active Mar 29, 2019

Embed
What would you like to do?
Example for my blog post
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
You can’t perform that action at this time.