Ensure gomodules are used when downloading
This commit is contained in:
parent
bc81a0f6e4
commit
03f218a63c
@ -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 . .
|
||||
|
@ -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 . .
|
||||
|
@ -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 . .
|
||||
|
Loading…
Reference in New Issue
Block a user