From daf3acd8a25680795afcc9d6f3f1c0886f64abce Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Mon, 18 Aug 2025 14:31:36 -0500 Subject: [PATCH] moving to trixie --- Dockerfile | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 908b843..0765ec7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,9 @@ -FROM debian:bullseye-slim +FROM debian:trixie-slim # -RUN apt update && apt install cron apache2 python3 python3-pip php libapache2-mod-php -y -RUN a2enmod php* -COPY crontab /crontab +COPY requirements.txt crontab init.sh / COPY refresh.php /var/www/html/ +RUN apt update && apt install cron apache2 python3 python3-pip php libapache2-mod-php -y && pip3 install -r /requirements.txt --break-system-packages && apt clean && a2enmod php* && chmod +x /init.sh && mkdir /var/www/.aws COPY libnotices.py /usr/local/bin/ -COPY requirements.txt / -COPY init.sh / -RUN chmod +x /init.sh -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 +RUN chmod +x /usr/local/bin/libnotices.py && chown www-data:www-data /var/www -R && crontab -u www-data /crontab EXPOSE 80 -CMD ["/init.sh"] -#(cron -l 8 & ) && su - www-data -s /usr/local/bin/libnotices.py & apache2ctl -D FOREGROUND] \ No newline at end of file +CMD ["/init.sh"] \ No newline at end of file -- 2.49.1