duplicity-backup/Dockerfile
2021-01-31 22:00:23 +01:00

16 lines
244 B
Docker

FROM wernight/duplicity
USER root
VOLUME /services
# Setup files
COPY . /data
WORKDIR /data
# Setup cronjob
COPY crontab /etc/cron.d/backup-cron
RUN chmod 0644 /etc/cron.d/backup-cron
RUN crontab /etc/cron.d/backup-cron
CMD ["crond", "-f"]