diff --git a/Dockerfile b/Dockerfile index 505d8159..d10d260b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -284,12 +284,11 @@ RUN cd ~ && touch .chktexrc ################# # Install shfmt # ################# -ENV GO111MODULE=on +ENV GO111MODULE=on \ + GOROOT=/usr/lib/go \ + GOPATH=/go -ENV GOROOT=/usr/lib/go \ - GOPATH=/go \ - PATH="$PATH":"$GOROOT"/bin \ - PATH="$PATH":"$GOPATH"/bin +ENV PATH="$PATH":"$GOROOT"/bin:"$GOPATH"/bin RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN go get mvdan.cc/sh/v3/cmd/shfmt