diff --git a/Dockerfile b/Dockerfile index 35f3136..dfec6dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM nextcloud:29.0.1 AS base USER root -RUN apt-get update && apt-get install -y sudo git p7zip p7zip-full libmagickcore-6.q16-6-extra wget +RUN apt-get update && apt-get install -y sudo git p7zip p7zip-full libmagickcore-6.q16-6-extra wget authbind RUN git clone https://github.com/remicollet/php-rar.git \ && cd php-rar && git checkout 02331ca \ @@ -33,6 +33,9 @@ RUN mkdir /usr/nextcloud/ RUN chown www-data:www-data /usr/nextcloud/ ENV APACHE_RUN_GROUP=www-data ENV APACHE_RUN_USER=www-data +RUN touch /etc/authbind/byport/80 /etc/authbind/byport/443 \ + && chown www-data /etc/authbind/byport/80 /etc/authbind/byport/443 \ + && chmod 755 /etc/authbind/byport/80 /etc/authbind/byport/443 FROM base AS production diff --git a/src/supervisord.conf b/src/supervisord.conf index a5a1fdc..a7cfc9d 100644 --- a/src/supervisord.conf +++ b/src/supervisord.conf @@ -12,7 +12,7 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 -command=apache2-foreground +command=authbind --deep apache2-foreground [program:cron] stdout_logfile=/dev/stdout