From 3d1ccb8c6312d395d93907ab00a3aec49fcc0433 Mon Sep 17 00:00:00 2001 From: gregory hendrickson Date: Wed, 29 Nov 2023 18:57:55 -0800 Subject: [PATCH] add mycronfile, modify Dockerfile for copy mycronfile --- nextcloud/Dockerfile | 9 +++++---- nextcloud/mycronfile | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 nextcloud/mycronfile diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 08499df..3143fad 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -53,9 +53,9 @@ 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 + apt-get install -y build-essential wget cmake libx11-dev libopenblas-dev git # Install dlib RUN git clone https://github.com/davisking/dlib.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"] \ No newline at end of file diff --git a/nextcloud/mycronfile b/nextcloud/mycronfile new file mode 100644 index 0000000..1e84152 --- /dev/null +++ b/nextcloud/mycronfile @@ -0,0 +1,2 @@ +*/5 * * * * php -f /var/www/html/cron.php +*/30 * * * * php -f /var/www/html/occ face:background_job -t 900 \ No newline at end of file