cron -> crontab?
All checks were successful
Build and Push Docker Images / build (push) Successful in 34s

This commit is contained in:
ChrQR 2024-05-30 01:00:22 +02:00
parent 3809d0efa9
commit 9e91678b11
2 changed files with 1 additions and 3 deletions

View File

@ -33,4 +33,4 @@ COPY run_scraper.sh /usr/local/bin/run_scraper.sh
RUN chmod +x /usr/local/bin/run_scraper.sh RUN chmod +x /usr/local/bin/run_scraper.sh
# Run the command on container startup # Run the command on container startup
CMD ["cron", "-f"] CMD ["crontab", "-f"]

View File

@ -1,4 +1,2 @@
# Run the scraper every hour # Run the scraper every hour
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 * * * * root /usr/local/bin/run_scraper.sh >> /var/log/cron.log 2>&1 0 * * * * root /usr/local/bin/run_scraper.sh >> /var/log/cron.log 2>&1