Enable opcache

This commit is contained in:
Hugo Peixoto 2024-01-02 13:07:51 +00:00
parent d0cb1eee59
commit 23f6091fef
2 changed files with 9 additions and 0 deletions

View File

@ -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
View 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