add mycronfile, modify Dockerfile for copy mycronfile

This commit is contained in:
gregory hendrickson
2023-11-29 18:57:55 -08:00
parent 444db62e85
commit 3d1ccb8c63
2 changed files with 7 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ RUN mkdir -p \
/var/run/supervisord \
;
# Install dependencies
# Install additional dependencies
RUN apt-get update && \
apt-get install -y build-essential wget cmake libx11-dev libopenblas-dev git
@@ -76,12 +76,13 @@ RUN git clone https://github.com/goodspb/pdlib.git && \
# Enable pdlib in PHP ###zzz ensures it will load last and override any other settings
RUN echo 'extension="pdlib.so"' >> /usr/local/etc/php/conf.d/zzz-php.ini
# Explicitly Increase memory limit in PHP
RUN echo 'memory_limit = 9600M' >> /usr/local/etc/php/conf.d/zzz-php.ini
COPY supervisord.conf /
COPY mycronfile /var/spool/cron/crontabs/www-data
ENV NEXTCLOUD_UPDATE=1
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]

2
nextcloud/mycronfile Normal file
View File

@@ -0,0 +1,2 @@
*/5 * * * * php -f /var/www/html/cron.php
*/30 * * * * php -f /var/www/html/occ face:background_job -t 900