mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-28 17:11:00 -05:00
Less layers to set Go env
This commit is contained in:
parent
f90c3a289b
commit
59154d8dff
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue