Dockerfile 390 B

1234567891011121314
  1. FROM nextcloud:27.1.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:pre-generate' >> /var/spool/cron/crontabs/www-data
  9. CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]]