mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e5d28115ee
- all changes here are attributed to difference in behaviour between, namely: - resolution of secondary test dependencies - prunning of non-Go files Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
490 B
Text
14 lines
490 B
Text
FROM golang:1.13
|
|
|
|
# Clone and complie a riscv compatible version of the go compiler.
|
|
RUN git clone https://review.gerrithub.io/riscv/riscv-go /riscv-go
|
|
# riscvdev branch HEAD as of 2019-06-29.
|
|
RUN cd /riscv-go && git checkout 04885fddd096d09d4450726064d06dd107e374bf
|
|
ENV PATH=/riscv-go/misc/riscv:/riscv-go/bin:$PATH
|
|
RUN cd /riscv-go/src && GOROOT_BOOTSTRAP=$(go env GOROOT) ./make.bash
|
|
ENV GOROOT=/riscv-go
|
|
|
|
# Make sure we compile.
|
|
WORKDIR pty
|
|
ADD . .
|
|
RUN GOOS=linux GOARCH=riscv go build
|