From b3ea63470518247c7df929459372c8f424294b44 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Mon, 22 May 2017 12:47:54 -0700 Subject: [PATCH] add go 1.8.1 into dev image --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index ad0d086d3c..571c3e1476 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,15 @@ RUN apt-get update && \ clang-3.8 llvm-3.8 libclang-3.8-dev && \ apt-get clean -y +# Install Go +RUN wget -O go.tgz https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz && \ + tar -C /usr/local -xzf go.tgz && \ + mkdir /root/gopath && \ + rm go.tgz +ENV GOROOT=/usr/local/go GOPATH=/root/gopath +# should not be in the same line with GOROOT definition, otherwise docker build could not find GOROOT. +ENV PATH=${PATH}:${GOROOT}/bin + # git credential to skip password typing RUN git config --global credential.helper store -- GitLab