Convert pkg/client to depend only on stdlib.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer
2020-07-29 16:24:16 -05:00
parent 3bc0389bab
commit 04cacabc16
9 changed files with 271 additions and 116 deletions

View File

@@ -24,6 +24,8 @@ WORKDIR /work
# Get dependencies first so they can be cached as a layer
COPY go.mod .
COPY go.sum .
COPY pkg/client/go.mod ./pkg/client/go.mod
COPY pkg/client/go.sum ./pkg/client/go.sum
RUN go mod download
# Copy only the production source code to avoid cache misses when editing other files
COPY cmd ./cmd