From f4e320684e2b5e66ffc4c1a1bd99676a10706c37 Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Tue, 7 Nov 2023 20:07:08 +0100 Subject: [PATCH] Update nextcloud --- nextcloud/Dockerfile | 46 ++++++++++++++++++++++---------------------- nextcloud/start.sh | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 9593bab..a8dfb64 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -1,5 +1,5 @@ -FROM debian:bullseye-slim -ARG VERSION=25.0.5 +FROM debian:bookworm-slim +ARG VERSION=27.1.3 ARG UID=3001 ARG GID=3001 @@ -12,22 +12,22 @@ RUN apt-get update; \ ca-certificates \ nginx \ wget \ - php7.4 \ - php7.4-apcu \ - php7.4-curl \ - php7.4-fpm \ - php7.4-gd \ - php7.4-intl \ - php7.4-json \ - php7.4-ldap \ - php7.4-mbstring \ - php7.4-memcache \ - php7.4-pgsql \ - php7.4-redis \ - php7.4-xml \ - php7.4-zip \ - php7.4-bcmath \ - php7.4-gmp \ + php8.2 \ + php8.2-apcu \ + php8.2-curl \ + php8.2-fpm \ + php8.2-gd \ + php8.2-intl \ + php-json \ + php8.2-ldap \ + php8.2-mbstring \ + php8.2-memcache \ + php8.2-pgsql \ + php8.2-redis \ + php8.2-xml \ + php8.2-zip \ + php8.2-bcmath \ + php8.2-gmp \ strace \ bzip2 \ php-imagick; \ @@ -49,8 +49,8 @@ RUN wget -qO- https://github.com/nextcloud/deck/releases/download/${DECK_VERSION tar -C /var/www/nextcloud/apps -xz --no-same-owner RUN ln -sf /opt/config/nginx.conf /etc/nginx/sites-enabled/default; \ - ln -sf /opt/config/www.conf /etc/php/7.4/fpm/pool.d/www.conf; \ - ln -s /var/log/php7.4-fpm.log /opt/log/php7.4-fpm.error.log; \ + ln -sf /opt/config/www.conf /etc/php/8.2/fpm/pool.d/www.conf; \ + ln -s /var/log/php8.2-fpm.log /opt/log/php8.2-fpm.error.log; \ { echo 'opcache.enable=1'; \ echo 'opcache.enable_cli=1'; \ echo 'opcache.interned_strings_buffer=8'; \ @@ -58,9 +58,9 @@ RUN ln -sf /opt/config/nginx.conf /etc/nginx/sites-enabled/default; \ echo 'opcache.memory_consumption=128'; \ echo 'opcache.save_comments=1'; \ echo 'opcache.revalidate_freq=1'; \ - } >> /etc/php/7.4/fpm/php.ini; \ - echo 'apc.enable_cli=1' >> /etc/php/7.4/mods-available/apcu.ini; \ - sed -i "s/memory_limit = 128M/memory_limit = 512M/" /etc/php/7.4/fpm/php.ini + } >> /etc/php/8.2/fpm/php.ini; \ + echo 'apc.enable_cli=1' >> /etc/php/8.2/mods-available/apcu.ini; \ + sed -i "s/memory_limit = 128M/memory_limit = 512M/" /etc/php/8.2/fpm/php.ini RUN chown www-data /opt/config diff --git a/nextcloud/start.sh b/nextcloud/start.sh index 5500b57..cd19e96 100755 --- a/nextcloud/start.sh +++ b/nextcloud/start.sh @@ -6,4 +6,4 @@ nginx export USER=www-data HOME=/home/www-data mkdir /run/php -exec /usr/sbin/php-fpm7.4 --nodaemonize --fpm-config /etc/php/7.4/fpm/php-fpm.conf +exec /usr/sbin/php-fpm8.2 --nodaemonize --fpm-config /etc/php/8.2/fpm/php-fpm.conf