9 lines
496 B
Docker
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"] |