Dockerfile 386 B

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