Files
librarynotices/Dockerfile
Dan Hamik daf3acd8a2
All checks were successful
/ Plan (push) Successful in 8m17s
/ Plan (pull_request) Successful in 29s
/ Deploy (pull_request) Successful in 25s
moving to trixie
2025-08-18 14:39:16 -05:00

9 lines
496 B
Docker

FROM debian:trixie-slim
#
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/
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"]