perf(): improve performances with opcache extension
parent
3d03766d59
commit
9b73d0d55e
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue