Dockerfile 608 B

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