docker_images/backups/rsyncvolumes/Dockerfile
Fabien BOURGEOIS 9064486491 Revert "[FIX]Overlayfs problem with cron (again)"
This reverts commit ae67c3adb638729b0597cc68c5efac323eb513e4.
2017-11-22 16:36:03 +01:00

22 lines
467 B
Docker

FROM debian:jessie
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
ENV SOURCE /var/lib/docker/volumes
ENV DEST /var/backups/
RUN apt-get update && apt-get install --no-install-recommends -y \
cron gettext-base rsync python-minimal libpython-stdlib
# Avoid overlayfs bug with tail
VOLUME /var/log
COPY crontab /etc/crontab
RUN chmod 644 /etc/crontab
WORKDIR /opt/backup
COPY rsync.template .
COPY plan.tpl.py .
COPY launch.sh .
CMD bash launch.sh