From 23f6091fefdb767451bd9f8a9319d86bca213e04 Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Tue, 2 Jan 2024 13:07:51 +0000 Subject: [PATCH] Enable opcache --- Dockerfile | 4 ++++ opcache.ini | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 opcache.ini diff --git a/Dockerfile b/Dockerfile index 39112b9..04e0be4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/opcache.ini b/opcache.ini new file mode 100644 index 0000000..746a515 --- /dev/null +++ b/opcache.ini @@ -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