dockerfile caching

This commit is contained in:
2024-01-12 11:01:21 +05:30
committed by prathamesh
parent 6c0c20240a
commit 5c5ae63c34
+4
View File
@@ -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 . .