Files
docker-volume-backup/Dockerfile
Mitchell Michalak 6a83ce4034 Support reading timezone info from env (#748)
* 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
2026-04-20 14:10:00 +02:00

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"]