From 15e770f2deb03e9d203dc1bb68c6e8604f2777e6 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Tue, 26 Nov 2024 23:51:16 +0100 Subject: [PATCH] feat: install opcache for PHP (8.3) --- php-8.3-alpine-composer/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php-8.3-alpine-composer/Dockerfile b/php-8.3-alpine-composer/Dockerfile index 14647e9..bc2921d 100644 --- a/php-8.3-alpine-composer/Dockerfile +++ b/php-8.3-alpine-composer/Dockerfile @@ -7,7 +7,9 @@ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer # git and unzip are necessary for Composer, mysql-client will install “mysqldump” command RUN apk add --no-cache git unzip mysql-client \ - && docker-php-ext-install opcache pdo_mysql + && docker-php-ext-install opcache pdo_mysql \ + && echo "[opcache]" >> $PHP_INI_DIR/php.ini \ + && echo "opcache.enable=1" >> $PHP_INI_DIR/php.ini RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev \ && apk add --no-cache libintl \