Commit aa05e79d authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

enable modules caching in separate layer during docker build (#197)

parent 5e875a6f
......@@ -3,6 +3,9 @@ FROM golang:1.14 AS build
ARG COMMIT=""
WORKDIR /src
# enable modules caching in separate layer
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN make binary COMMIT=$COMMIT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment