Set longer timeouts; Use production docker nextcloud
This commit is contained in:
parent
0f5caed42b
commit
b47e006c9c
4 changed files with 32 additions and 11 deletions
|
|
@ -1,5 +1,15 @@
|
|||
FROM nextcloud:25.0
|
||||
FROM nextcloud:production-fpm
|
||||
|
||||
RUN echo "*/5 * * * * php -f /var/www/nextcloud/occ preview:pre-generate">> /var/spool/cron/crontabs/www-data
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y ffmpeg imagemagick && apt remove gcc -y && apt autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# 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
|
||||
|
||||
## Increase memory limits
|
||||
COPY upload.ini /usr/local/etc/php/conf.d/upload.ini
|
||||
|
||||
# Remove residual gcc
|
||||
RUN apt remove gcc -y && apt autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
|
|
|||
6
images/nc/upload.ini
Normal file
6
images/nc/upload.ini
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
upload_max_filesize=16G
|
||||
post_max_size=16G
|
||||
max_input_time=3600
|
||||
max_execution_time=3600
|
||||
memory_limit=1G
|
||||
output_buffering=0
|
||||
Loading…
Add table
Add a link
Reference in a new issue