Dockerfile: set GO111MODULE=off

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-09-11 09:36:53 +02:00
parent 234b951483
commit 961119db21
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
4 changed files with 4 additions and 1 deletions

View file

@ -32,6 +32,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

View file

@ -1,7 +1,7 @@
ARG GO_VERSION=1.12.9 ARG GO_VERSION=1.12.9
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 \

View file

@ -8,6 +8,7 @@
ARG GO_VERSION=1.12.9 ARG GO_VERSION=1.12.9
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

View file

@ -173,6 +173,7 @@ ARG GO_VERSION=1.12.9
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 `