From b306b72be958d2805d73e3a996eb00739ffdee1c Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 27 Jun 2025 18:27:39 +0100 Subject: Properly set cron to use its own docker container --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 7fdac3d..0cda40f 100755 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,10 @@ 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 python3-pip python3-dev build-essential clang libffi-dev libxml2-dev libxslt-dev libjpeg-dev zlib1g-dev tmux cron +RUN apt-get install -y python3-pip python3-dev build-essential clang libffi-dev libxml2-dev libxslt-dev libjpeg-dev zlib1g-dev COPY . /app WORKDIR /app RUN pip3 install -r requirements.txt -RUN echo "*/30 * * * * root python3 /app/edaweb/cache.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab - ENTRYPOINT ["bash"] CMD ["entrypoint.sh"] -- cgit v1.2.3