From a51e04c550d82b239c8c64c57efcad455647297f Mon Sep 17 00:00:00 2001 From: Johan Brandhorst Date: Sun, 21 Oct 2018 17:52:12 +0100 Subject: [PATCH] Dockerfile: include necessary build subfolders When building, tinygo needs access to files relative to the directory it was built from. Include src and targets directories. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4000e89b..61904a3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ RUN cd /go/src/github.com/aykevl/tinygo/ && \ FROM golang:latest COPY --from=0 /go/bin/tinygo /go/bin/tinygo +COPY --from=0 /go/src/github.com/aykevl/tinygo/src /go/src/github.com/aykevl/tinygo/src +COPY --from=0 /go/src/github.com/aykevl/tinygo/targets /go/src/github.com/aykevl/tinygo/targets RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \ echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main" >> /etc/apt/sources.list && \