cron -> crontab?
All checks were successful
Build and Push Docker Images / build (push) Successful in 34s
All checks were successful
Build and Push Docker Images / build (push) Successful in 34s
This commit is contained in:
parent
3809d0efa9
commit
9e91678b11
@ -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"]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user