Skip to content

Commit

Permalink
Add opcache
Browse files Browse the repository at this point in the history
  • Loading branch information
ston3o committed Dec 12, 2018
1 parent 489971a commit 3f9009a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions beta-fpm/Dockerfile
Expand Up @@ -20,8 +20,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
&& rm /etc/cron.daily/*

RUN docker-php-ext-configure imap --with-imap --with-imap-ssl --with-kerberos \
&& docker-php-ext-install imap intl mbstring mysqli pdo_mysql zip \
&& docker-php-ext-enable imap intl mbstring mysqli pdo_mysql zip
&& docker-php-ext-install imap intl mbstring mysqli pdo_mysql zip opcache \
&& docker-php-ext-enable imap intl mbstring mysqli pdo_mysql zip opcache

# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
Expand Down Expand Up @@ -54,6 +54,7 @@ COPY makeconfig.php /makeconfig.php
COPY makedb.php /makedb.php
COPY mautic.crontab /etc/cron.d/mautic
COPY mautic-php.ini /usr/local/etc/php/conf.d/mautic-php.ini
COPY opcache.ini /usr/local/etc/php/conf.d/opcache.ini

# Apply necessary permissions
RUN ["chmod", "+x", "/entrypoint.sh"]
Expand Down
6 changes: 6 additions & 0 deletions beta-fpm/opcache.ini
@@ -0,0 +1,6 @@
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable=1

0 comments on commit 3f9009a

Please sign in to comment.