From 18a704430c6025797a6aea69f00efc2f1e06679a Mon Sep 17 00:00:00 2001 From: Dominik Date: Mon, 2 Sep 2024 22:46:02 +0200 Subject: [PATCH] test every 5 min with new path to python bin --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d6b1b71..60614b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN pip install --no-cache-dir -r requirements.txt RUN apt-get update && apt-get install -y cron # Add the cron job to run the Python script weekly (every Sunday at 3 AM) -RUN echo "0 3 * * 0 python /usr/src/app/main.py >> /var/log/cron.log 2>&1" > /etc/cron.d/weekly_job +RUN echo "*/5 * * * * /usr/local/bin/python /usr/src/app/main.py >> /var/log/cron.log 2>&1" > /etc/cron.d/weekly_job # Give execution rights on the cron job RUN chmod 0644 /etc/cron.d/weekly_job @@ -27,3 +27,4 @@ RUN touch /var/log/cron.log # Run the cron job CMD cron && tail -f /var/log/cron.log +#0 11 * * 0 \ No newline at end of file