diff --git a/Dockerfile b/Dockerfile index a2782c7efc52bc693b523de9d3cf24453cc44b77..0f0d14503c31afbbfcd568a7785a13e849aec408 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,8 +42,7 @@ RUN wget -qO- https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | tar -xz -C /usr/local && \ mkdir /root/gopath && \ mkdir /root/gopath/bin && \ - mkdir /root/gopath/src && \ - rm go.tgz + mkdir /root/gopath/src 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:${GOPATH}/bin