diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 3b7dd453..7644304e 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -114,6 +114,9 @@ RUN if [ ${INSTALL_OPCACHE} = true ]; then \ docker-php-ext-enable opcache \ ;fi +# Copy opcache configration +COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini + # #-------------------------------------------------------------------------- # Final Touch diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 3450dc67..af858569 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -125,6 +125,8 @@ RUN if [ ${INSTALL_OPCACHE} = true ]; then \ docker-php-ext-enable opcache \ ;fi +# Copy opcache configration +COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini # @@ -144,4 +146,4 @@ WORKDIR /var/www/laravel CMD ["php-fpm"] -EXPOSE 9000 \ No newline at end of file +EXPOSE 9000 diff --git a/php-fpm/opcache.ini b/php-fpm/opcache.ini new file mode 100644 index 00000000..dcc670d7 --- /dev/null +++ b/php-fpm/opcache.ini @@ -0,0 +1,7 @@ +extension=opcache.so +opcache.enable="1" +opcache.memory_consumption="256" +opcache.use_cwd="0" +opcache.fast_shutdown="1" +opcache.max_file_size="0" +opcache.validate_timestamps="0"