2020-02-11 01:49:39 +00:00
|
|
|
ARG REPO=library
|
2020-07-28 16:15:39 +00:00
|
|
|
FROM ${REPO}/ubuntu:focal
|
2020-02-11 01:49:39 +00:00
|
|
|
LABEL maintainer="ViViDboarder <vividboarder@gmail.com>"
|
2018-07-24 15:38:22 +00:00
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
2018-11-01 05:09:20 +00:00
|
|
|
ca-certificates \
|
2018-07-24 15:38:22 +00:00
|
|
|
cron \
|
2020-07-28 16:15:39 +00:00
|
|
|
restic=0.9.6* \
|
2018-07-24 15:38:22 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/apt/lists/*
|
|
|
|
|
|
|
|
VOLUME /root/.cache/restic
|
|
|
|
VOLUME /backups
|
|
|
|
|
|
|
|
ENV BACKUP_DEST="/backups"
|
|
|
|
ENV BACKUP_NAME="backup"
|
|
|
|
ENV PATH_TO_BACKUP="/data"
|
|
|
|
|
|
|
|
# Cron schedules
|
|
|
|
ENV CRON_SCHEDULE=""
|
|
|
|
ENV VERIFY_CRON_SCHEDULE=""
|
|
|
|
|
2019-02-01 22:00:45 +00:00
|
|
|
COPY backup.sh /
|
|
|
|
COPY restore.sh /
|
|
|
|
COPY start.sh /
|
|
|
|
COPY verify.sh /
|
|
|
|
COPY healthcheck.sh /
|
|
|
|
COPY cron-exec.sh /
|
|
|
|
|
|
|
|
HEALTHCHECK CMD /healthcheck.sh
|
2018-07-24 15:38:22 +00:00
|
|
|
|
|
|
|
CMD [ "/start.sh" ]
|