updated crontab
All checks were successful
Build and Push Docker Images / build (push) Successful in 33s

This commit is contained in:
ChrQR 2024-05-30 00:56:48 +02:00
parent 7429f5f603
commit 3809d0efa9
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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