Download dependencies in separate layer.

change-name
Robert Jacob 4 years ago
parent 5ca165b3ee
commit 6e57819add
  1. 4
      Dockerfile

@ -3,6 +3,10 @@ FROM golang:1 AS builder
ENV CGO_ENABLED=0
WORKDIR /build
COPY go.mod go.sum /build/
RUN go mod download && go mod verify
COPY . .
RUN go test ./...

Loading…
Cancel
Save