diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index b7afed9c..0cc55e86 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -7,7 +7,9 @@ RUN set -ex; \ rsync \ ; \ \ - rm /var/spool/cron/crontabs/root + rm /var/spool/cron/crontabs/root; \ + touch /usr/local/etc/php/conf.d/redis-session.ini; \ + chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini; # install the PHP extensions we need # see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 26b00dbb..f27c82e0 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -10,7 +10,10 @@ RUN set -ex; \ busybox-static \ libldap-common \ ; \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/*; \ + \ + touch /usr/local/etc/php/conf.d/redis-session.ini; \ + chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini; # install the PHP extensions we need # see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html