From bcb7f86c0c7f24f8f41883ec620c717a95cdaf36 Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 27 Jun 2025 00:24:44 +0100 Subject: Added a separate cron container --- Dockerfile_cron | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Dockerfile_cron (limited to 'Dockerfile_cron') 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"] -- cgit v1.2.3