From f1b3ec4be851d5323e04cb462516a6d161ad1758 Mon Sep 17 00:00:00 2001 From: Johan Brandhorst Date: Sun, 21 Oct 2018 05:59:55 +0100 Subject: [PATCH] Dockerfile: add vendor step The Dockerfile was missing the part where we download the dependencies into the vendor folder. It was of course working locally because I had a vendor folder already. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6753fd91..4000e89b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,9 @@ RUN wget -O- https://raw.githubusercontent.com/golang/dep/master/install.sh | sh COPY . /go/src/github.com/aykevl/tinygo -RUN go install /go/src/github.com/aykevl/tinygo/ +RUN cd /go/src/github.com/aykevl/tinygo/ && \ + dep ensure --vendor-only && \ + go install /go/src/github.com/aykevl/tinygo/ FROM golang:latest @@ -18,6 +20,6 @@ COPY --from=0 /go/bin/tinygo /go/bin/tinygo 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 + apt-get install -y libllvm7 ENTRYPOINT ["/go/bin/tinygo"]