perf(): improve performances with opcache extension

pull/3/head
Hardware 2016-07-18 07:55:59 +02:00
parent 3d03766d59
commit 9b73d0d55e
No known key found for this signature in database
GPG Key ID: EC6DF6F90263EDEA
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
php7-dom@testing \
php7-ctype@testing \
php7-session@testing \
php7-opcache@testing \
&& cd /tmp \
&& ln -s /usr/bin/php7 /usr/bin/php \
&& curl -s http://getcomposer.org/installer | php \
@ -37,6 +38,7 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
COPY config.sql /flarum/app/config.sql
COPY nginx.conf /etc/nginx/nginx.conf
COPY php-fpm.conf /etc/php7/php-fpm.conf
COPY opcache.ini /etc/php7/conf.d/00_opcache.ini
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY startup /usr/local/bin/startup

8
opcache.ini Normal file
View File

@ -0,0 +1,8 @@
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.fast_shutdown=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=5413
opcache.revalidate_freq=60