Use alpine, add collabora, tune php uploads, bump database version

This commit is contained in:
Oliver Hattshire 2025-10-20 03:48:24 -03:00
parent 2107687a11
commit 03c2fb46cf
8 changed files with 47 additions and 51 deletions

View file

@ -1,18 +1,15 @@
FROM nextcloud:production-fpm
FROM nextcloud:production-fpm-alpine
# Pregenerate previews
RUN echo "*/5 * * * * php -f /var/www/html/occ preview:pre-generate">> /var/spool/cron/crontabs/www-data
# Install app deps
RUN apt-get update && apt-get install --no-install-recommends -y \
ffmpeg imagemagick wget gnupg2 unzip
#RUN apt-get update && apt-get install --no-install-recommends -y \
# ffmpeg imagemagick wget gnupg2 unzip
RUN apk add --no-cache ffmpeg imagemagick wget gnupg unzip
## Increase memory limits
COPY upload.ini /usr/local/etc/php/conf.d/upload.ini
COPY upload.ini ${PHP_INI_DIR}/conf.d/upload.ini
## Tune PHP-FPM Children
COPY fpmtune.ini /usr/local/etc/php/conf.d/fpmtune.ini
# Remove residual gcc
RUN apt remove gcc -y && apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*
COPY fpmtune.ini ${PHP_INI_DIR}/conf.d/fpmtune.ini

View file

@ -3,3 +3,4 @@ pm.start_servers=12
pm.min_spare_servers=12
pm.max_spare_servers=38
opcache.memory_consumption=256

View file

@ -1,6 +1,6 @@
upload_max_filesize=16G
post_max_size=16G
upload_max_filesize=3G
post_max_size=3G
max_input_time=3600
max_execution_time=3600
memory_limit=1G
memory_limit=3G
output_buffering=0