librarynotices/Dockerfile
Dan Hamik 2d60d6aba1
Some checks failed
/ Plan (push) Failing after 17s
fixing requirements and dockerfiles
2024-11-25 13:53:56 -06:00

14 lines
488 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 mkdir /var/www/.aws
RUN chmod +x /usr/local/bin/libnotices.py
RUN chown www-data:www-data /var/www -R
RUN apt clean
EXPOSE 80
CMD ( cron -l 8 & ) && su -u www-data python3 /usr/local/bin/libnotices.py && apache2ctl -D FOREGROUND