Skip to content

Commit

Permalink
feat: install opcache for PHP (8.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Nov 26, 2024
1 parent 6a807a6 commit 15e770f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion php-8.3-alpine-composer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 15e770f

Please sign in to comment.