Add missing files to Nextcloud config + some tweaks

This commit is contained in:
Paul-Henri Froidmont 2018-01-12 01:37:27 +01:00
parent 5226d54eb3
commit 3c4d76c76e
9 changed files with 84 additions and 57 deletions

View file

@ -1,4 +1,14 @@
FROM nextcloud:fpm
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php
RUN apt-get update && apt-get install -y \
supervisor \
cron \
vim \
&& 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"]