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.
|
|
|
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 "*/5 * * * * su - www-data -s /bin/bash -c \"php -d memory_limit=-1 -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
|