Skip to content

Commit

Permalink
Dockerfile: use GOTOOLCHAIN=local
Browse files Browse the repository at this point in the history
Related discussion in docker-library/golang#472

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit aa28297)
Signed-off-by: Cory Snider <csnider@mirantis.com>
  • Loading branch information
thaJeztah authored and corhere committed Aug 28, 2024
1 parent 4fea1a5 commit 20989cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RUN test -n "$APT_MIRROR" && sed -ri "s/(httpredir|deb|security).debian.org/${AP
ARG DEBIAN_FRONTEND
RUN apt-get update && apt-get install --no-install-recommends -y file
ENV GO111MODULE=off
ENV GOTOOLCHAIN=local

FROM base AS criu
ARG DEBIAN_FRONTEND
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.simple
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}"

FROM ${GOLANG_IMAGE}
ENV GO111MODULE=off
ENV GOTOOLCHAIN=local

# allow replacing httpredir or deb mirror
ARG APT_MIRROR=deb.debian.org
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ ENV GO_VERSION=${GO_VERSION} `
GIT_VERSION=2.11.1 `
GOPATH=C:\gopath `
GO111MODULE=off `
GOTOOLCHAIN=local `
FROM_DOCKERFILE=1 `
GOTESTSUM_VERSION=${GOTESTSUM_VERSION} `
GOWINRES_VERSION=${GOWINRES_VERSION}
Expand Down

0 comments on commit 20989cf

Please sign in to comment.