install cron
All checks were successful
Build and Push Docker Images / build (push) Successful in 35s

This commit is contained in:
ChrQR 2024-06-01 17:02:24 +02:00
parent 17d9873640
commit c390e7559d

View File

@ -7,8 +7,9 @@ WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install the required Python packages
RUN pip install requests beautifulsoup4
# Install cron and the required Python packages
RUN apt-get update && apt-get install -y cron && \
pip install requests beautifulsoup4
# Copy and add a cron job to run the script every hour
COPY cronjob /etc/cron.d/jobindex-cron