[Dockerfile] Enable opcache for improved performance (#3097)

Opcache is a PHP extension that caches the bytecode PHP converts each script
into to reduce the work that needs to happen each request.
This commit is contained in:
John S Long 2022-10-09 14:14:24 -05:00 committed by GitHub
parent 56a8c521c2
commit 5e664d9b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ RUN apt-get update && \
docker-php-ext-install zip && \
pecl install memcached && \
docker-php-ext-enable memcached && \
docker-php-ext-enable opcache && \
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY ./config/nginx.conf /etc/nginx/sites-enabled/default