mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-03-27 12:14:29 +01:00
increase rebuild speed by avoiding retrigger of mod download (#759)
This commit is contained in:
committed by
GitHub
parent
842ad97d7b
commit
1af11fc3f4
@@ -4,8 +4,9 @@
|
||||
FROM golang:1.26-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
WORKDIR /app/cmd/backup
|
||||
RUN go build -o backup .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user