mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-12-22 11:37:44 +00:00
31 lines
677 B
Docker
31 lines
677 B
Docker
ARG REPO=library
|
|
FROM ${REPO}/alpine:3.12
|
|
LABEL maintainer="ViViDboarder <vividboarder@gmail.com>"
|
|
|
|
RUN apk add --no-cache curl=~7 bash=~5
|
|
|
|
ARG ARCH=amd64
|
|
|
|
ARG RCLONE_VERSION=v1.55.1
|
|
|
|
COPY ./scripts/install_rclone.sh /scripts/
|
|
RUN /scripts/install_rclone.sh "$RCLONE_VERSION" "$ARCH"
|
|
|
|
ARG RESTIC_VERSION=0.12.0
|
|
|
|
COPY ./scripts/install_restic.sh /scripts/
|
|
RUN /scripts/install_restic.sh "$RESTIC_VERSION" "$ARCH"
|
|
|
|
# Set some default environment variables
|
|
ENV BACKUP_DEST="/backups"
|
|
ENV BACKUP_NAME="backup"
|
|
ENV PATH_TO_BACKUP="/data"
|
|
ENV CRON_SCHEDULE=""
|
|
ENV VERIFY_CRON_SCHEDULE=""
|
|
|
|
COPY ./scripts /scripts
|
|
|
|
HEALTHCHECK CMD /scripts/healthcheck.sh
|
|
|
|
CMD [ "/scripts/start.sh" ]
|