librarynotices/Dockerfile

12 lines
369 B
Docker
Raw Normal View History

2024-11-25 12:53:31 -06:00
FROM debian:bullseye-slim
2024-11-25 13:24:36 -06:00
#
2024-11-25 12:53:31 -06:00
RUN apt update && apt install cron apache2 python3 python3-pip -y
COPY crontab /etc/cron.d/crontab
COPY refresh.php /var/www/html/
COPY libnotices.py /usr/local/bin/
COPY requirements.txt /
RUN pip3 install -r /requirements.txt
RUN chmod +x /usr/local/bin/libnotices.py
2024-11-25 13:11:57 -06:00
RUN apt clean
EXPOSE 80
2024-11-25 13:21:46 -06:00
CMD ( cron -l 8 & ) && apache2ctl -D FOREGROUND