mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Dockerfile: set GO111MODULE=off
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 961119db21
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
aa6a9891b0
commit
075e057de5
4 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,7 @@ FROM golang:${GO_VERSION}-stretch AS base
|
||||||
ARG APT_MIRROR
|
ARG APT_MIRROR
|
||||||
RUN sed -ri "s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g" /etc/apt/sources.list \
|
RUN sed -ri "s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g" /etc/apt/sources.list \
|
||||||
&& sed -ri "s/(security).debian.org/${APT_MIRROR:-security.debian.org}/g" /etc/apt/sources.list
|
&& sed -ri "s/(security).debian.org/${APT_MIRROR:-security.debian.org}/g" /etc/apt/sources.list
|
||||||
|
ENV GO111MODULE=off
|
||||||
|
|
||||||
FROM base AS criu
|
FROM base AS criu
|
||||||
ARG DEBIAN_FRONTEND
|
ARG DEBIAN_FRONTEND
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
ARG GO_VERSION=1.12.17
|
ARG GO_VERSION=1.12.17
|
||||||
|
|
||||||
FROM golang:${GO_VERSION}-alpine AS base
|
FROM golang:${GO_VERSION}-alpine AS base
|
||||||
|
ENV GO111MODULE=off
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
bash \
|
bash \
|
||||||
btrfs-progs-dev \
|
btrfs-progs-dev \
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
ARG GO_VERSION=1.12.17
|
ARG GO_VERSION=1.12.17
|
||||||
|
|
||||||
FROM golang:${GO_VERSION}-stretch
|
FROM golang:${GO_VERSION}-stretch
|
||||||
|
ENV GO111MODULE=off
|
||||||
|
|
||||||
# allow replacing httpredir or deb mirror
|
# allow replacing httpredir or deb mirror
|
||||||
ARG APT_MIRROR=deb.debian.org
|
ARG APT_MIRROR=deb.debian.org
|
||||||
|
|
|
@ -173,6 +173,7 @@ ARG GO_VERSION=1.12.17
|
||||||
ENV GO_VERSION=${GO_VERSION} `
|
ENV GO_VERSION=${GO_VERSION} `
|
||||||
GIT_VERSION=2.11.1 `
|
GIT_VERSION=2.11.1 `
|
||||||
GOPATH=C:\gopath `
|
GOPATH=C:\gopath `
|
||||||
|
GO111MODULE=off `
|
||||||
FROM_DOCKERFILE=1
|
FROM_DOCKERFILE=1
|
||||||
|
|
||||||
RUN `
|
RUN `
|
||||||
|
|
Loading…
Reference in a new issue