duplicity-backup/Dockerfile

16 lines
244 B
Docker
Raw Normal View History

2021-01-31 21:52:50 +01:00
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"]