This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
loki/nextcloud/cron/Dockerfile

15 lines
419 B
Docker
Raw Normal View History

FROM nextcloud:fpm
2018-12-11 20:31:31 +01:00
ENV DEBIAN_FRONTEND noninteractive
2018-12-11 20:25:54 +01:00
RUN apt-get update && apt-get -y upgrade && apt-get -y install \
supervisor \
cron \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /var/log/supervisord /var/run/supervisord && \
echo "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\""| crontab -
COPY supervisord.conf /etc/supervisor/supervisord.conf
CMD ["/usr/bin/supervisord"]