From 7429f5f603770d0ce1f67c53aa9549f2efb7d9a2 Mon Sep 17 00:00:00 2001 From: ChrQR Date: Thu, 30 May 2024 00:54:09 +0200 Subject: [PATCH] set path for cron --- scrapers/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"]