From 59154d8dfff89a8f4baab8610d0b3040f06eb07c Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Mon, 31 Aug 2020 17:04:51 +0200 Subject: [PATCH] Less layers to set Go env --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5714b242..505d8159 100644 --- a/Dockerfile +++ b/Dockerfile @@ -286,10 +286,11 @@ RUN cd ~ && touch .chktexrc ################# ENV GO111MODULE=on -ENV GOROOT=/usr/lib/go -ENV GOPATH=/go -ENV PATH="$PATH":"$GOROOT"/bin -ENV PATH="$PATH":"$GOPATH"/bin +ENV GOROOT=/usr/lib/go \ + GOPATH=/go \ + PATH="$PATH":"$GOROOT"/bin \ + PATH="$PATH":"$GOPATH"/bin + RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN go get mvdan.cc/sh/v3/cmd/shfmt