Skip to content

Instantly share code, notes, and snippets.

@ninedraft
Last active June 18, 2020 07:28
Show Gist options
  • Save ninedraft/676915bcb05ca920d9750607bb72a355 to your computer and use it in GitHub Desktop.
Save ninedraft/676915bcb05ca920d9750607bb72a355 to your computer and use it in GitHub Desktop.
Go with generics docker file dev.go2go
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