FROM alpine:3.21 RUN apk add --no-cache \ restic \ mariadb-client \ sqlite \ openssh-client \ bash \ && mkdir -p /mnt/source /mnt/staging /hooks COPY entrypoint.sh /usr/local/bin/entrypoint.sh COPY backup.sh /usr/local/bin/backup.sh RUN chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/backup.sh ENV BACKUP_CRON="20 7 * * *" \ BACKUP_SOURCE="/mnt/source /mnt/staging" \ KEEP_DAILY=1 \ KEEP_WEEKLY=3 \ KEEP_MONTHLY=4 \ KEEP_YEARLY=1 ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]