docker_images/backups/rsyncvolumes/Dockerfile.c7

19 lines
353 B
Docker
Raw Normal View History

2020-05-17 08:25:07 +02:00
FROM centos:7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
ENV SOURCE /var/lib/docker/volumes
ENV DEST /var/backups/
RUN yum -y install gettext rsync cronie
# Avoid overlayfs bug with tail
VOLUME /var/log
WORKDIR /opt/backup
COPY crontab ./crontab
COPY rsync.template .
COPY plan.tpl.py .
COPY launch.c7.sh launch.sh
CMD bash launch.sh