From 5fe9add0aff362cbf6b449bb24d522583526771a 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 . .