You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
docker-nextcloud/Dockerfile

16 lines
577 B

FROM nextcloud:latest
LABEL maintainer="Meliurwen <meliruwen@gmail.com>"
# 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 -qq && \
apt-get clean