Crontab changes
All checks were successful
/ Plan (push) Successful in 32s
/ Plan (pull_request) Successful in 19s

This commit is contained in:
Dan Hamik 2024-11-26 01:08:34 -06:00
parent e914656041
commit 96011017bc
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -1 +1 @@
45 4 * * * www-data python3 /usr/local/bin/libnotices.py
15 1 * * * python3 /usr/local/bin/libnotices.py