12345678910111213141516 |
- FROM nextcloud:29.0.1-apache
- RUN apt-get update && apt-get install -y \
- supervisor \
- && rm -rf /var/lib/apt/lists/* \
- && mkdir /var/log/supervisord /var/run/supervisord
- COPY supervisord.conf /
- ENV NEXTCLOUD_UPDATE=1
- RUN echo '*/15 * * * * php /var/www/html/occ preview:generate-all --no-interaction' >> /var/spool/cron/crontabs/www-data
- RUN echo '0 2 * * 0 php /var/www/html/occ recognize:recrawl' >> /var/spool/cron/crontabs/www-data
- RUN echo '1 2 * * 0 php /var/www/html/occ recognize:cleanup-tags' >> /var/spool/cron/crontabs/www-data
- CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]]
|