35 lines
1.0 KiB
Docker
35 lines
1.0 KiB
Docker
# Nextcloud Docker Image
|
|
# Based on official Nextcloud image with optimizations for restore
|
|
|
|
FROM nextcloud:latest
|
|
|
|
# Install additional tools
|
|
RUN apt-get update && apt-get install -y \
|
|
postgresql-client \
|
|
mariadb-client \
|
|
rsync \
|
|
smbclient \
|
|
libmagickcore-6.q16-6-extra \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set recommended PHP settings
|
|
RUN { \
|
|
echo 'memory_limit = 1G'; \
|
|
echo 'max_execution_time = 3600'; \
|
|
echo 'upload_max_filesize = 20G'; \
|
|
echo 'post_max_size = 20G'; \
|
|
echo 'max_file_uploads = 200'; \
|
|
echo 'opcache.enable = 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'; \
|
|
} > /usr/local/etc/php/conf.d/nextcloud-custom.ini
|
|
|
|
# Copy custom entrypoint
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
CMD ["apache2-foreground"] |