diff --git a/Dockerfile b/Dockerfile index 7a4c8c4..908b843 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM debian:bullseye-slim # RUN apt update && apt install cron apache2 python3 python3-pip php libapache2-mod-php -y RUN a2enmod php* -COPY crontab /etc/cron.d/crontab +COPY crontab /crontab COPY refresh.php /var/www/html/ COPY libnotices.py /usr/local/bin/ COPY requirements.txt / @@ -12,6 +12,7 @@ RUN pip3 install -r /requirements.txt RUN mkdir /var/www/.aws RUN chmod +x /usr/local/bin/libnotices.py RUN chown www-data:www-data /var/www -R +RUN crontab -u www-data /crontab RUN apt clean EXPOSE 80 CMD ["/init.sh"] diff --git a/crontab b/crontab index bd29dab..d885925 100644 --- a/crontab +++ b/crontab @@ -1 +1 @@ -45 4 * * * www-data python3 /usr/local/bin/libnotices.py \ No newline at end of file +15 1 * * * python3 /usr/local/bin/libnotices.py