Enable opcache
This commit is contained in:
parent
d0cb1eee59
commit
23f6091fef
@ -7,9 +7,13 @@ RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
|
||||
RUN docker-php-ext-install gd
|
||||
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
|
||||
RUN docker-php-ext-install imap
|
||||
RUN docker-php-ext-install opcache
|
||||
RUN a2enmod rewrite
|
||||
RUN a2enmod expires
|
||||
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
ADD opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
||||
|
||||
ADD freescout-dist /var/www/html
|
||||
RUN chown -R www-data:www-data /var/www/html/
|
||||
ADD apache2.conf /etc/apache2/sites-enabled/000-default.conf
|
||||
|
5
opcache.ini
Normal file
5
opcache.ini
Normal file
@ -0,0 +1,5 @@
|
||||
opcache.memory_consumption=128
|
||||
opcache.interned_strings_buffer=8
|
||||
opcache.max_accelerated_files=4000
|
||||
opcache.revalidate_freq=60
|
||||
opcache.enable_cli=1
|
Loading…
Reference in New Issue
Block a user