mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-24 20:34:10 +02:00
Add examples for both cases apache and fpm
This commit is contained in:
parent
60ac9b728e
commit
6a54981de4
4 changed files with 45 additions and 0 deletions
13
.examples/dockerfiles/cron/apache/Dockerfile
Normal file
13
.examples/dockerfiles/cron/apache/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM nextcloud:apache
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
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"]
|
Loading…
Add table
Add a link
Reference in a new issue