12345678910111213141516171819202122232425 |
- FROM debian:stretch
-
- ARG CONFIG_DIR=/etc/default/config-files/
-
- RUN apt-get update &&\
- apt-get install -y wget ssmtp rsnapshot cron &&\
- apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
- rm /etc/cron.*/*
-
- RUN wget -O /tmp/rclone.deb 'https://downloads.rclone.org/v1.47.0/rclone-v1.47.0-linux-amd64.deb' && \
- dpkg -i /tmp/rclone.deb && rm /tmp/rclone.deb
-
- COPY ./vars-vars /etc/vars-vars
-
- COPY ./vars-files /etc/vars-files
-
- COPY ./common.sh /common.sh
-
- COPY run.sh /run.sh
-
- RUN mkdir "${CONFIG_DIR}"
-
- COPY ./config "${CONFIG_DIR}"
-
- CMD ["/run.sh"]
|