Last active
June 18, 2020 07:28
-
-
Save ninedraft/676915bcb05ca920d9750607bb72a355 to your computer and use it in GitHub Desktop.
Go with generics docker file dev.go2go
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:1.14 as builder | |
RUN git clone \ | |
--depth 1 \ | |
--single-branch \ | |
--branch=dev.go2go \ | |
--progress \ | |
https://go.googlesource.com/go /go2 | |
ENV CGO_ENABLED=0 | |
WORKDIR /go2/src | |
RUN ./all.bash | |
FROM alpine:3.12.0 | |
COPY --from=builder /go2 /go | |
ENV PATH=$PATH:/go/bin | |
ENV GOROOT=/go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment