mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-22 05:10:28 +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
|
WORKDIR /app
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
COPY cmd/backup/main.go ./cmd/backup/main.go
|
COPY cmd/backup/main.go ./cmd/backup/main.go
|
||||||
RUN go build -o backup cmd/backup/main.go
|
RUN go build -o backup cmd/backup/main.go
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user