parent
8bb69beb84
commit
5640bd963d
@ -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
|
||||
|
@ -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
|
||||
EXPOSE 9000
|
||||
|
7
php-fpm/opcache.ini
Normal file
7
php-fpm/opcache.ini
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user