test every 5 min with new path to python bin
This commit is contained in:
parent
18a704430c
commit
38f456516e
|
|
@ -14,7 +14,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||||
RUN apt-get update && apt-get install -y cron
|
RUN apt-get update && apt-get install -y cron
|
||||||
|
|
||||||
# Add the cron job to run the Python script weekly (every Sunday at 3 AM)
|
# Add the cron job to run the Python script weekly (every Sunday at 3 AM)
|
||||||
RUN echo "*/5 * * * * /usr/local/bin/python /usr/src/app/main.py >> /var/log/cron.log 2>&1" > /etc/cron.d/weekly_job
|
RUN echo "*/5 * * * * /usr/local/bin/python3 /usr/src/app/main.py >> /var/log/cron.log 2>&1" > /etc/cron.d/weekly_job
|
||||||
|
|
||||||
# Give execution rights on the cron job
|
# Give execution rights on the cron job
|
||||||
RUN chmod 0644 /etc/cron.d/weekly_job
|
RUN chmod 0644 /etc/cron.d/weekly_job
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue