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 . .