Skip to content

Commit 88ecb31

Browse files
committed
Merge pull request #12 from mayeco/patch-1
Install OPCache required for Drupal 8 (master)
2 parents e2538c9 + 0d33ea0 commit 88ecb31

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

8/Dockerfile

+12-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ RUN a2enmod rewrite
77
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
88
&& rm -rf /var/lib/apt/lists/* \
99
&& 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
1122

1223
WORKDIR /var/www/html
1324

0 commit comments

Comments
 (0)