File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,18 @@ RUN a2enmod rewrite
7
7
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
8
8
&& rm -rf /var/lib/apt/lists/* \
9
9
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
10
- && docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql
10
+ && docker-php-ext-install gd mbstring opcache pdo pdo_mysql pdo_pgsql
11
+
12
+ # set recommended PHP.ini settings
13
+ # see https://secure.php.net/manual/en/opcache.installation.php
14
+ RUN { \
15
+ echo 'opcache.memory_consumption=128' ; \
16
+ echo 'opcache.interned_strings_buffer=8' ; \
17
+ echo 'opcache.max_accelerated_files=4000' ; \
18
+ echo 'opcache.revalidate_freq=60' ; \
19
+ echo 'opcache.fast_shutdown=1' ; \
20
+ echo 'opcache.enable_cli=1' ; \
21
+ } > /usr/local/etc/php/conf.d/opcache-recommended.ini
11
22
12
23
WORKDIR /var/www/html
13
24
You can’t perform that action at this time.
0 commit comments