updated crontab
All checks were successful
Build and Push Docker Images / build (push) Successful in 33s
All checks were successful
Build and Push Docker Images / build (push) Successful in 33s
This commit is contained in:
parent
7429f5f603
commit
3809d0efa9
@ -14,9 +14,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
# Copy the current directory contents into the container at /app
|
# Copy the current directory contents into the container at /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
# Set the PATH environment variable
|
|
||||||
ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
||||||
|
|
||||||
# Copy the crontab file to the cron.d directory
|
# Copy the crontab file to the cron.d directory
|
||||||
COPY crontab /etc/cron.d/scraper-cron
|
COPY crontab /etc/cron.d/scraper-cron
|
||||||
|
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user