diff --git a/scrapers/Dockerfile b/scrapers/Dockerfile index 410aa6f..20b060a 100644 --- a/scrapers/Dockerfile +++ b/scrapers/Dockerfile @@ -14,6 +14,9 @@ RUN pip install --no-cache-dir -r requirements.txt # Copy the current directory contents into the container at /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 crontab /etc/cron.d/scraper-cron @@ -33,4 +36,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 ["/usr/bin/cron", "-f"] +CMD ["cron", "-f"]