fix: jpg support for image styles

This commit is contained in:
Oliver Davies 2023-06-05 21:51:31 +01:00
parent 590cb8ffc0
commit b121f2fb77
2 changed files with 7 additions and 0 deletions

View file

@ -23,6 +23,7 @@ final class CreateFinalConfigurationData
$basePackages = [
'git',
'libjpeg-dev',
'libpng-dev',
'libzip-dev',
// TODO: only add `mariadb-client` if MariaDB is used.

View file

@ -25,12 +25,18 @@ FROM base AS build
USER root
{% if 'apache' in php.version %}
RUN a2enmod rewrite
{% endif %}
{% if dockerfile.stages.build.packages %}
RUN apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends \
{{ dockerfile.stages.build.packages | join(' ') }}
{% endif %}
RUN docker-php-ext-configure gd --with-jpeg
{% if dockerfile.stages.build.extensions.install %}
RUN docker-php-ext-install {{ dockerfile.stages.build.extensions.install | join(' ') }}
{% endif %}