2020-02-11 01:49:39 +00:00
|
|
|
ARG REPO=library
|
2021-06-15 00:01:52 +00:00
|
|
|
FROM ${REPO}/alpine:3.12
|
2018-07-24 15:38:22 +00:00
|
|
|
|
2021-06-15 17:41:57 +00:00
|
|
|
ARG TARGETARCH
|
2018-07-24 15:38:22 +00:00
|
|
|
|
2021-06-15 17:41:57 +00:00
|
|
|
RUN apk add --no-cache curl=~7 bash=~5
|
2018-07-24 15:38:22 +00:00
|
|
|
|
2021-06-15 00:01:52 +00:00
|
|
|
ARG RCLONE_VERSION=v1.55.1
|
|
|
|
|
|
|
|
COPY ./scripts/install_rclone.sh /scripts/
|
2021-06-15 17:41:57 +00:00
|
|
|
RUN /scripts/install_rclone.sh "$RCLONE_VERSION" "$TARGETARCH"
|
2021-06-15 00:01:52 +00:00
|
|
|
|
|
|
|
ARG RESTIC_VERSION=0.12.0
|
|
|
|
|
|
|
|
COPY ./scripts/install_restic.sh /scripts/
|
2021-06-15 17:41:57 +00:00
|
|
|
RUN /scripts/install_restic.sh "$RESTIC_VERSION" "$TARGETARCH"
|
2021-06-15 00:01:52 +00:00
|
|
|
|
|
|
|
# Set some default environment variables
|
2018-07-24 15:38:22 +00:00
|
|
|
ENV BACKUP_DEST="/backups"
|
|
|
|
ENV BACKUP_NAME="backup"
|
|
|
|
ENV PATH_TO_BACKUP="/data"
|
|
|
|
ENV CRON_SCHEDULE=""
|
|
|
|
ENV VERIFY_CRON_SCHEDULE=""
|
|
|
|
|
2021-06-15 00:01:52 +00:00
|
|
|
COPY ./scripts /scripts
|
2019-02-01 22:00:45 +00:00
|
|
|
|
2021-06-15 00:01:52 +00:00
|
|
|
HEALTHCHECK CMD /scripts/healthcheck.sh
|
2018-07-24 15:38:22 +00:00
|
|
|
|
2021-06-15 20:21:09 +00:00
|
|
|
VOLUME /root/.config
|
|
|
|
|
2021-06-15 00:01:52 +00:00
|
|
|
CMD [ "/scripts/start.sh" ]
|