Download dependencies in advance

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2020-11-05 14:26:39 +01:00
parent 10ac93d42b
commit 85239d515d
No known key found for this signature in database
GPG key ID: 34CC109EB5ED1C2A

View file

@ -12,6 +12,12 @@ ENV GOOS=${TARGETOS} \
RUN apk add --no-cache --update alpine-sdk
ARG GOPROXY
COPY go.mod go.sum ./
COPY api/v2/go.mod api/v2/go.sum ./api/v2/
RUN go mod download
COPY . .
RUN make release-binary