backup-containers/backup/Dockerfile

10 lines
279 B
Docker
Raw Permalink Normal View History

2024-07-02 22:13:03 -07:00
# god i suck at docker
FROM debian AS base
RUN apt update && apt install tar cron openssh-client rsync -y
COPY Crontab /etc/cron.d/autorun
COPY backup.sh /backup.sh
COPY init.sh /init.sh
RUN chmod +x /backup.sh /init.sh
RUN mkdir -p /tmp /volumes
CMD [ "/bin/bash", "/init.sh" ]