mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-12 12:00:03 -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 GO111MODULE=on
|
||||||
|
|
||||||
ENV GOROOT=/usr/lib/go
|
ENV GOROOT=/usr/lib/go \
|
||||||
ENV GOPATH=/go
|
GOPATH=/go \
|
||||||
ENV PATH="$PATH":"$GOROOT"/bin
|
PATH="$PATH":"$GOROOT"/bin \
|
||||||
ENV PATH="$PATH":"$GOPATH"/bin
|
PATH="$PATH":"$GOPATH"/bin
|
||||||
|
|
||||||
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
|
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
|
||||||
RUN go get mvdan.cc/sh/v3/cmd/shfmt
|
RUN go get mvdan.cc/sh/v3/cmd/shfmt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue