Skip to content

Commit

Permalink
Update nextcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Nov 7, 2023
1 parent c759f28 commit f4e3206
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions nextcloud/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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; \
Expand All @@ -49,18 +49,18 @@ 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'; \
echo 'opcache.max_accelerated_files=10000'; \
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

Expand Down
2 changes: 1 addition & 1 deletion nextcloud/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f4e3206

Please sign in to comment.