-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (17 loc) · 843 Bytes
/
Dockerfile
File metadata and controls
21 lines (17 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM nextcloud:fpm-alpine
USER root
# PHP-FPM tunning
RUN sed -i -e "s/pm\.max_children = .*/pm.max_children = 120/g" /usr/local/etc/php-fpm.d/www.conf
RUN sed -i -e "s/pm\.start_servers = .*/pm.start_servers = 24/g" /usr/local/etc/php-fpm.d/www.conf
RUN sed -i -e "s/pm\.min_spare_servers = .*/pm.min_spare_servers = 12/g" /usr/local/etc/php-fpm.d/www.conf
RUN sed -i -e "s/pm\.max_spare_servers = .*/pm.max_spare_servers = 36/g" /usr/local/etc/php-fpm.d/www.conf
# override default php.ini settings set by official nextcloud docker build
RUN \
sed -i -e "s/512/1024/g" /usr/local/etc/php/conf.d/memory-limit.ini; \
sed -i -e "s/128/256/g" /usr/local/etc/php/conf.d/opcache-recommended.ini;
# copy custom scripts
RUN mkdir /scripts
ADD scripts/* /scripts/
RUN \
chmod +x /scripts/*; \
chown -R www-data:www-data /scripts;