Crontab changes
This commit is contained in:
parent
e914656041
commit
96011017bc
@ -2,7 +2,7 @@ FROM debian:bullseye-slim
|
|||||||
#
|
#
|
||||||
RUN apt update && apt install cron apache2 python3 python3-pip php libapache2-mod-php -y
|
RUN apt update && apt install cron apache2 python3 python3-pip php libapache2-mod-php -y
|
||||||
RUN a2enmod php*
|
RUN a2enmod php*
|
||||||
COPY crontab /etc/cron.d/crontab
|
COPY crontab /crontab
|
||||||
COPY refresh.php /var/www/html/
|
COPY refresh.php /var/www/html/
|
||||||
COPY libnotices.py /usr/local/bin/
|
COPY libnotices.py /usr/local/bin/
|
||||||
COPY requirements.txt /
|
COPY requirements.txt /
|
||||||
@ -12,6 +12,7 @@ RUN pip3 install -r /requirements.txt
|
|||||||
RUN mkdir /var/www/.aws
|
RUN mkdir /var/www/.aws
|
||||||
RUN chmod +x /usr/local/bin/libnotices.py
|
RUN chmod +x /usr/local/bin/libnotices.py
|
||||||
RUN chown www-data:www-data /var/www -R
|
RUN chown www-data:www-data /var/www -R
|
||||||
|
RUN crontab -u www-data /crontab
|
||||||
RUN apt clean
|
RUN apt clean
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["/init.sh"]
|
CMD ["/init.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user