mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-12-28 03:00:24 +01:00
Frederik Ring
1c6f64e254
* Current Docker client breaks in newer Go versions * Cater for breaking API changes in Docker client * Update Docker client * Unpin Go version used for build * Tidy sum file
22 lines
425 B
Docker
22 lines
425 B
Docker
# Copyright 2021 - Offen Authors <hioffen@posteo.de>
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
FROM golang:1.20-alpine as builder
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go mod download
|
|
WORKDIR /app/cmd/backup
|
|
RUN go build -o backup .
|
|
|
|
FROM alpine:3.18
|
|
|
|
WORKDIR /root
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
COPY --from=builder /app/cmd/backup/backup /usr/bin/backup
|
|
COPY --chmod=755 ./entrypoint.sh /root/
|
|
|
|
ENTRYPOINT ["/root/entrypoint.sh"]
|