diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2025-02-16 17:24:27 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2025-02-16 17:24:27 +0000 |
commit | f1ebe61647115a3cce8da64bfd2a3f6c360db5d1 (patch) | |
tree | 7907820cdd11bb16dda581fe7a220f4e1b6137b7 /autoBackup/Dockerfile | |
parent | ba742bbb4a884f668437b98a490b84d87d6df846 (diff) | |
download | BetterZFSReplication-f1ebe61647115a3cce8da64bfd2a3f6c360db5d1.tar.gz BetterZFSReplication-f1ebe61647115a3cce8da64bfd2a3f6c360db5d1.zip |
Added Dockerfile with cronjob
Diffstat (limited to 'autoBackup/Dockerfile')
-rw-r--r-- | autoBackup/Dockerfile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/autoBackup/Dockerfile b/autoBackup/Dockerfile new file mode 100644 index 0000000..1ae96da --- /dev/null +++ b/autoBackup/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu:20.04 +ENV TZ=Europe/London +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +RUN apt-get update -y +RUN apt-get install -y python3-pip iputils-ping cron +COPY . /app +WORKDIR /app +RUN pip3 install -r requirements.txt +RUN pip3 install -r TasmotaCLI/requirements.txt + +RUN echo "0 21 * * sat,wed root python3 /app/autoBackup.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab +ENTRYPOINT ["bash"] +CMD ["entrypoint.sh"]
\ No newline at end of file |