backup-container/Dockerfile
Andras Schmelczer be17cc81c3
All checks were successful
ShellCheck / shellcheck (push) Successful in 5s
Docker / build (push) Successful in 15s
Remove break-lock, add checking, and fix healthcheck
2026-09-27 11:06:27 +01:00

22 lines
494 B
Docker

FROM alpine:3.21.3
# 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
# Check for backup failures and a success within the allowed time.
ENV MAX_BACKUP_AGE_SECONDS=86400
HEALTHCHECK --interval=10s --timeout=10s CMD /src/healthcheck.sh
ENTRYPOINT ["sh", "-c", "/src/schedule.sh"]