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