From e9d75785c5374b79adac9b03acb2c084b28ea451 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sat, 7 Oct 2023 01:05:00 +0800 Subject: [PATCH] dockerfile caching --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index c848960e..3f9c6cd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,10 @@ RUN apk add --update git build-base linux-headers # Set working directory for the build WORKDIR /go/src/github.com/cerc-io/laconicd +# Cache Go modules +COPY go.mod go.sum ./ +RUN go mod download + # Add source files COPY . .