提交 285bee54 编写于 作者: G gangliao 提交者: GitHub

Merge pull request #2236 from helinwang/docker_go

add go 1.8.1 into dev image
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册