From d18c4c8d4a7b5926765493edbaadd87b5f220f34 Mon Sep 17 00:00:00 2001 From: Motalleb Fallahnezhad Date: Sat, 16 May 2026 15:15:09 +0330 Subject: [PATCH] chore(Dockerfile): run go mod download before copying full source Preserves the Go module cache when go.sum remains unchanged. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 06ddc638..e6d4aa23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,9 @@ RUN apk --no-cache --update add \ curl \ unzip +COPY go.mod go.sum ./ +RUN go mod download + COPY . . COPY --from=frontend /src/web/dist ./web/dist