Use alpine, add collabora, tune php uploads, bump database version
This commit is contained in:
parent
2107687a11
commit
03c2fb46cf
8 changed files with 47 additions and 51 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue