Ensure gomodules are used when downloading

This commit is contained in:
Henry Jenkins 2019-07-15 21:49:38 +01:00
parent bc81a0f6e4
commit 03f218a63c
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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