From 5e664d9b2b0cb0b13402cf56cb83474e4effe00a Mon Sep 17 00:00:00 2001 From: John S Long Date: Sun, 9 Oct 2022 14:14:24 -0500 Subject: [PATCH] [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. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d62dd422..2340e77a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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