FROM nextcloud:latest LABEL maintainer="Meliurwen " # The line with `sed` command simply inserts the command `service cron start` # at the second line of the `entrypoint.sh` file RUN apt-get -q update && \ apt-get -qq install \ cron \ nano-tiny && \ echo "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\"" | crontab - && \ sed -i '2 i\service cron start' /entrypoint.sh && \ apt-get purge -y nano-tiny && \ rm -rf /var/lib/apt/lists/* && \ apt-get autoremove --purge && \ apt-get clean