librarynotices/Dockerfile
Dan Hamik 5b73d20751
All checks were successful
/ Plan (push) Successful in 8s
update with new dockerfile settings
2024-11-25 13:11:57 -06:00

12 lines
361 B
Docker

FROM debian:bullseye-slim
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
RUN apt clean
EXPOSE 80
CMD ["cron && apache2ctl -D FOREGROUND"]