diff --git a/scrapers/Dockerfile b/scrapers/Dockerfile index afc3e7e..b2bd2e1 100644 --- a/scrapers/Dockerfile +++ b/scrapers/Dockerfile @@ -33,4 +33,4 @@ COPY run_scraper.sh /usr/local/bin/run_scraper.sh RUN chmod +x /usr/local/bin/run_scraper.sh # Run the command on container startup -CMD ["cron", "-f"] +CMD ["crontab", "-f"] diff --git a/scrapers/crontab b/scrapers/crontab index 0603ef6..a12aa0f 100644 --- a/scrapers/crontab +++ b/scrapers/crontab @@ -1,4 +1,2 @@ # 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