move go to /usr/local/go

This commit is contained in:
Dan Ballard 2021-03-24 18:00:23 -07:00
parent 62aaf64330
commit 1cbd875f23
2 changed files with 5 additions and 5 deletions

View File

@ -4,10 +4,10 @@ ENV GOLANG_VERSION=1.15.10
RUN apt-get update
RUN apt-get install -y --no-install-recommends wget
RUN wget https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
RUN tar -xzf go$GOLANG_VERSION.linux-amd64.tar.gz
RUN wget https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
RUN tar -xzf go$GOLANG_VERSION.linux-amd64.tar.gz -C /usr/local/
RUN rm go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOROOT=/go
ENV PATH=/go/bin:$PATH
ENV GOROOT=/usr/local/go
ENV PATH=/usr/local/go/bin:$PATH
ENTRYPOINT /bin/bash

View File

@ -1,3 +1,3 @@
# mingw-go
This container is based on [purplekarrot/mingw-w64-x86-64](https://hub.docker.com/r/purplekarrot/mingw-w64-x86-64) and then has Go 1.15.10 installed in /go
This container is based on [purplekarrot/mingw-w64-x86-64](https://hub.docker.com/r/purplekarrot/mingw-w64-x86-64) and then has Go 1.15.10 installed in /usr/local/go