From 61fcd7f44f33fa7e9adfdc6344d27857b6347801 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Mon, 31 Aug 2020 18:07:01 +0200 Subject: [PATCH] Fix adding Go bins to PATH --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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