mirror of
https://github.com/ghndrx/docker-compose.git
synced 2026-02-10 06:45:14 +00:00
add mycronfile, modify Dockerfile for copy mycronfile
This commit is contained in:
@@ -53,7 +53,7 @@ RUN mkdir -p \
|
|||||||
/var/run/supervisord \
|
/var/run/supervisord \
|
||||||
;
|
;
|
||||||
|
|
||||||
# Install dependencies
|
# Install additional dependencies
|
||||||
RUN apt-get update && \
|
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
|
||||||
|
|
||||||
@@ -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
|
# 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
|
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
|
RUN echo 'memory_limit = 9600M' >> /usr/local/etc/php/conf.d/zzz-php.ini
|
||||||
|
|
||||||
|
|
||||||
COPY supervisord.conf /
|
COPY supervisord.conf /
|
||||||
|
|
||||||
|
COPY mycronfile /var/spool/cron/crontabs/www-data
|
||||||
|
|
||||||
ENV NEXTCLOUD_UPDATE=1
|
ENV NEXTCLOUD_UPDATE=1
|
||||||
|
|
||||||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
||||||
2
nextcloud/mycronfile
Normal file
2
nextcloud/mycronfile
Normal 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
|
||||||
Reference in New Issue
Block a user