backup-container/Dockerfile
Andras Schmelczer 63098dd43b
Some checks failed
ShellCheck / shellcheck (pull_request) Successful in 5s
Docker / build (pull_request) Failing after 17s
Update alpine Docker tag to v3.24.2
2026-09-19 13:55:25 +00:00

22 lines
492 B
Docker

FROM alpine:3.24.2
# this is the default, but just to be explicit
USER root
RUN apk --no-cache add \
btrfs-progs \
openssh \
bash \
coreutils \
git \
borgbackup=1.4.0-r0
COPY src /src
COPY config/ssh_config /etc/ssh/
COPY config/exclude.conf /exclude.conf
# Add healthcheck to verify backup completed within allowed time
ENV MAX_BACKUP_AGE_SECONDS=86400
HEALTHCHECK --interval=10s --timeout=10s CMD /src/healthcheck.sh
ENTRYPOINT ["sh", "-c", "/src/schedule.sh"]