commit a46a8bcc2c6dc00688479e8a34c65002de05db59 Author: Andreas Larsen Date: Thu Jul 21 18:37:41 2022 +0200 add Dockerfile and supervisord.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1e4b2dc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +arg NC_TAG=24.0.3-apache + +from docker.io/nextcloud:$NC_TAG + +run apt-get update && apt-get install -y \ + sudo cron samba-client unrar-free p7zip p7zip-full \ + supervisor \ + && rm -rf /var/lib/apt/lists \ + && mkdir /var/log/supervisord /var/run/supervisord + +copy supervisord.conf / + +env NEXTCLOUD_UPDATE=1 + +cmd ["/usr/bin/supervisord", "-c", "/supervisord.conf"] diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..4bd0613 --- /dev/null +++ b/supervisord.conf @@ -0,0 +1,22 @@ +[supervisord] +nodaemon=true +logfile=/var/log/supervisord/supervisord.log +pidfile=/var/run/supervisord/supervisord.pid +childlogdir=/var/log/supervisord/ +logfile_maxbytes=50MB +logfile_backups=10 +loglevel=error + +[program:php-fpm] +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +command=apache2-foreground + +[program:cron] +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +command=/cron.sh