Fixing docker-build

Change-Id: I2e30219aa4584e9fa6eadc6107294898ab1358dd
diff --git a/build/package/Dockerfile b/build/package/Dockerfile
index 977af52..93a48d2 100644
--- a/build/package/Dockerfile
+++ b/build/package/Dockerfile
@@ -38,7 +38,6 @@
 # get dependencies
 COPY go.mod go.sum ./
 COPY vendor ./vendor
-RUN go mod vendor
 
 # build the protos
 COPY Makefile ./
@@ -47,6 +46,7 @@
 
 # copy and build
 COPY . ./
+RUN go mod vendor -v  # we can't vendor dependencies unless the code is there
 ARG GIT_STATUS=Clean
 RUN GO111MODULE=on go build -mod vendor\
     -ldflags "-X main.buildTime=$(date +”%Y/%m/%d-%H:%M:%S”) \