mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-04-26 02:05:36 +02:00
* add tzdata package * updated timezone documentation * add missing bind-mount from updated docs * Add timezone deprecation warnings and related logging to backup commands * fix lint CI job error * Address PR comments: refactor timezone deprecation warning handling, update docs
23 lines
454 B
Docker
23 lines
454 B
Docker
# Copyright 2022 - offen.software <hioffen@posteo.de>
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
FROM golang:1.26-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
WORKDIR /app/cmd/backup
|
|
RUN go build -o backup .
|
|
|
|
FROM alpine:3.23
|
|
|
|
WORKDIR /root
|
|
|
|
RUN apk add --no-cache ca-certificates tzdata && \
|
|
chmod a+rw /var/lock
|
|
|
|
COPY --from=builder /app/cmd/backup/backup /usr/bin/backup
|
|
|
|
ENTRYPOINT ["/usr/bin/backup", "-foreground"]
|