mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 12:44:22 +00:00
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:
parent
974783e879
commit
d18c4c8d4a
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue