2019-01-28 22:12:07 +00:00
|
|
|
FROM ubuntu:bionic
|
2018-07-24 15:38:22 +00:00
|
|
|
MAINTAINER ViViDboarder <vividboarder@gmail.com>
|
|
|
|
|
|
|
|
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 \
|
|
|
|
restic \
|
|
|
|
&& 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=""
|
|
|
|
|
|
|
|
ADD backup.sh /
|
|
|
|
ADD restore.sh /
|
|
|
|
ADD start.sh /
|
|
|
|
ADD verify.sh /
|
|
|
|
|
|
|
|
CMD [ "/start.sh" ]
|