set path for cron
All checks were successful
Build and Push Docker Images / build (push) Successful in 32s

This commit is contained in:
ChrQR 2024-05-30 00:54:09 +02:00
parent 63276ffd08
commit 7429f5f603

View File

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