mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-12-23 01:20:20 +01:00
leverage docker cache for downloading go deps
This commit is contained in:
parent
210c7d4540
commit
b6ad624115
@ -5,6 +5,7 @@ FROM golang:1.17-alpine as builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY cmd/backup/main.go ./cmd/backup/main.go
|
||||
RUN go build -o backup cmd/backup/main.go
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user