Skip to content

Commit 15e770f

Browse files
feat: install opcache for PHP (8.3)
1 parent 6a807a6 commit 15e770f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

php-8.3-alpine-composer/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
77

88
# git and unzip are necessary for Composer, mysql-client will install “mysqldump” command
99
RUN apk add --no-cache git unzip mysql-client \
10-
&& docker-php-ext-install opcache pdo_mysql
10+
&& docker-php-ext-install opcache pdo_mysql \
11+
&& echo "[opcache]" >> $PHP_INI_DIR/php.ini \
12+
&& echo "opcache.enable=1" >> $PHP_INI_DIR/php.ini
1113

1214
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev \
1315
&& apk add --no-cache libintl \

0 commit comments

Comments
 (0)