aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorSamuel Lang <[email protected]>2019-02-05 15:57:52 +0100
committerRon Evans <[email protected]>2019-02-05 15:57:52 +0100
commit70f1064f368f7171912a54a7f74143c1cecd4c4c (patch)
treec4f2bd61d157a328b134371703749b930778341f /Dockerfile
parent930de54dc5696323918b28fc8c0b419ce799c139 (diff)
downloadtinygo-70f1064f368f7171912a54a7f74143c1cecd4c4c.tar.gz
tinygo-70f1064f368f7171912a54a7f74143c1cecd4c4c.zip
making Docker build resilient (#168)
Currently, if the user hasn't run `git submodule update --init` beforehand, the docker build will fail This little addition makes the build atomic and ready for automatic CI tests for the future
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index bb75f7a4b..5896a999c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,13 +4,16 @@ FROM golang:latest AS tinygo-base
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 && \
apt-get update && \
- apt-get install -y llvm-7-dev libclang-7-dev
+ apt-get install -y llvm-7-dev libclang-7-dev git
RUN wget -O- https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
COPY . /go/src/github.com/tinygo-org/tinygo
RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
+ git submodule update --init
+
+RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
dep ensure --vendor-only && \
go install /go/src/github.com/tinygo-org/tinygo/