backup-container/Dockerfile
Andras Schmelczer 02cbef4d0f
Some checks failed
ShellCheck / shellcheck (pull_request) Successful in 6s
Docker / build (pull_request) Failing after 16s
Update alpine Docker tag to v3.24.3
2026-10-22 03:08:44 +00:00

23 lines
509 B
Docker

FROM alpine:3.24.3
# this is the default, but just to be explicit
USER root
RUN apk --no-cache add \
btrfs-progs \
openssh \
bash \
coreutils \
tzdata \
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 ["/src/startup.sh"]
CMD ["/src/schedule.sh"]