From 03f218a63c36def6b7428f8cbc0d333c8f3cc9ac Mon Sep 17 00:00:00 2001 From: Henry Jenkins Date: Mon, 15 Jul 2019 21:49:38 +0100 Subject: [PATCH] Ensure gomodules are used when downloading --- Dockerfile | 2 +- Dockerfile.arm64 | 2 +- Dockerfile.armv6 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc3a745..db18b41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy # Fetch dependencies COPY go.mod go.sum ./ -RUN go mod download +RUN GO111MODULE=on go mod download # Now pull in our code COPY . . diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 index 7138da8..5b3c1f5 100644 --- a/Dockerfile.arm64 +++ b/Dockerfile.arm64 @@ -8,7 +8,7 @@ WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy # Fetch dependencies COPY go.mod go.sum ./ -RUN go mod download +RUN GO111MODULE=on go mod download # Now pull in our code COPY . . diff --git a/Dockerfile.armv6 b/Dockerfile.armv6 index 15db884..5f5fe75 100644 --- a/Dockerfile.armv6 +++ b/Dockerfile.armv6 @@ -8,7 +8,7 @@ WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy # Fetch dependencies COPY go.mod go.sum ./ -RUN go mod download +RUN GO111MODULE=on go mod download # Now pull in our code COPY . .