Skip to content
Browse files

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
  • Loading branch information...
universam1 authored and deadprogram committed Feb 5, 2019
1 parent 930de54 commit 70f1064f368f7171912a54a7f74143c1cecd4c4c
Showing with 4 additions and 1 deletion.
  1. +4 −1 Dockerfile
@@ -4,12 +4,15 @@ FROM golang:latest AS tinygo-base
RUN wget -O-| apt-key add - && \
echo "deb 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- | sh

COPY . /go/src/

RUN cd /go/src/ && \
git submodule update --init

RUN cd /go/src/ && \
dep ensure --vendor-only && \
go install /go/src/

0 comments on commit 70f1064

Please sign in to comment.
You can’t perform that action at this time.