diff --git a/apache/Dockerfile b/apache/Dockerfile index 21f5c2b..4f7b858 100644 --- a/apache/Dockerfile +++ b/apache/Dockerfile @@ -52,6 +52,9 @@ RUN --mount=type=cache,target=/var/cache/apt \ RUN a2enmod rewrite # Install PHP extensions +RUN docker-php-ext-configure \ + opcache --enable-opcache + RUN docker-php-ext-install \ pdo_mysql \ pgsql \ @@ -64,7 +67,9 @@ RUN docker-php-ext-install \ soap \ gd -RUN docker-php-ext-enable imagick opcache +RUN docker-php-ext-enable \ + imagick \ + opcache # PHP RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_FILE" && \ diff --git a/fmp-alpine/Dockerfile b/fmp-alpine/Dockerfile index 402c1cb..87a2384 100644 --- a/fmp-alpine/Dockerfile +++ b/fmp-alpine/Dockerfile @@ -38,21 +38,20 @@ RUN apk add --no-cache --virtual .build-deps \ libxml2-dev \ linux-headers -RUN docker-php-ext-configure gd \ - --with-freetype \ - --with-jpeg \ - && docker-php-ext-install -j$(nproc) \ - pdo_mysql \ - pdo_pgsql \ - pgsql \ - zip \ - bcmath \ - soap \ - gd \ - intl \ - opcache \ - sockets \ - pcntl +RUN docker-php-ext-configure \ + gd --with-freetype --with-jpeg \ + && docker-php-ext-install -j$(nproc) \ + pdo_mysql \ + pdo_pgsql \ + pgsql \ + zip \ + bcmath \ + soap \ + gd \ + intl \ + opcache \ + sockets \ + pcntl RUN pecl install imagick \ && docker-php-ext-enable imagick