diff options
author | Johan Brandhorst <[email protected]> | 2018-10-21 17:52:12 +0100 |
---|---|---|
committer | Johan Brandhorst <[email protected]> | 2018-10-21 17:52:12 +0100 |
commit | a51e04c550d82b239c8c64c57efcad455647297f (patch) | |
tree | 88bfbfac38be87c60c8e8c71289d780f8674fc06 | |
parent | f1b3ec4be851d5323e04cb462516a6d161ad1758 (diff) | |
download | tinygo-a51e04c550d82b239c8c64c57efcad455647297f.tar.gz tinygo-a51e04c550d82b239c8c64c57efcad455647297f.zip |
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.
-rw-r--r-- | Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile index 4000e89b7..61904a3ae 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 && \ |