aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile_cron
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-06-27 00:24:44 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-06-27 00:24:44 +0100
commitbcb7f86c0c7f24f8f41883ec620c717a95cdaf36 (patch)
treec58fcd89b13735501cbcc822f8ad747442dcde23 /Dockerfile_cron
parent3dcddc0ef01f73c7c6902bde49cbf3a5cdd612a0 (diff)
downloadboymoder.blog-bcb7f86c0c7f24f8f41883ec620c717a95cdaf36.tar.gz
boymoder.blog-bcb7f86c0c7f24f8f41883ec620c717a95cdaf36.zip
Added a separate cron container
Diffstat (limited to 'Dockerfile_cron')
-rwxr-xr-xDockerfile_cron11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile_cron b/Dockerfile_cron
new file mode 100755
index 0000000..dea3208
--- /dev/null
+++ b/Dockerfile_cron
@@ -0,0 +1,11 @@
+FROM reg.reaweb.uk/edaweb
+MAINTAINER Eden Attenborough "eden.attenborough@outlook.com"
+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 tmux cron
+
+RUN echo "*/30 * * * * root python3 /app/edaweb/cache.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab
+
+ENTRYPOINT ["bash"]
+CMD ["cron_entrypoint.sh"]