Improved efficiency of Dockerfile

This commit is contained in:
Jan Böhmer 2023-02-05 00:46:30 +01:00
parent cba3f65c29
commit 9273d6b249

View file

@ -10,10 +10,7 @@ RUN docker-php-ext-configure gd \
--with-webp \
--with-jpeg \
--with-freetype \
&& docker-php-ext-install gd
# Install other needed PHP extensions
RUN docker-php-ext-install pdo_mysql curl intl mbstring bcmath zip xml xsl
&& docker-php-ext-install -j "$(nproc)" gd pdo_mysql curl intl mbstring bcmath zip xml xsl
# Enable opcache and configure it recommended for symfony (see https://symfony.com/doc/current/performance.html)
RUN docker-php-ext-enable opcache; \