diff --git a/Dockerfile b/Dockerfile index 25b314a1115..8654e656a21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,9 @@ ENV CGO_ENABLED=0 \ WORKDIR /go/src/github.com/vmware-tanzu/velero +COPY go.mod go.sum /go/src/github.com/vmware-tanzu/velero/ +RUN go mod download + COPY . /go/src/github.com/vmware-tanzu/velero RUN mkdir -p /output/usr/bin && \