chore(Dockerfile): run go mod download before copying full source

Preserves the Go module cache when go.sum remains unchanged.
This commit is contained in:
Motalleb Fallahnezhad 2026-05-16 15:15:09 +03:30
parent 974783e879
commit d18c4c8d4a

View file

@ -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