mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
fix: jpg support for image styles
This commit is contained in:
parent
590cb8ffc0
commit
b121f2fb77
|
@ -23,6 +23,7 @@ final class CreateFinalConfigurationData
|
||||||
|
|
||||||
$basePackages = [
|
$basePackages = [
|
||||||
'git',
|
'git',
|
||||||
|
'libjpeg-dev',
|
||||||
'libpng-dev',
|
'libpng-dev',
|
||||||
'libzip-dev',
|
'libzip-dev',
|
||||||
// TODO: only add `mariadb-client` if MariaDB is used.
|
// TODO: only add `mariadb-client` if MariaDB is used.
|
||||||
|
|
|
@ -25,12 +25,18 @@ FROM base AS build
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
{% if 'apache' in php.version %}
|
||||||
|
RUN a2enmod rewrite
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if dockerfile.stages.build.packages %}
|
{% if dockerfile.stages.build.packages %}
|
||||||
RUN apt-get update -yqq \
|
RUN apt-get update -yqq \
|
||||||
&& apt-get install -yqq --no-install-recommends \
|
&& apt-get install -yqq --no-install-recommends \
|
||||||
{{ dockerfile.stages.build.packages | join(' ') }}
|
{{ dockerfile.stages.build.packages | join(' ') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN docker-php-ext-configure gd --with-jpeg
|
||||||
|
|
||||||
{% if dockerfile.stages.build.extensions.install %}
|
{% if dockerfile.stages.build.extensions.install %}
|
||||||
RUN docker-php-ext-install {{ dockerfile.stages.build.extensions.install | join(' ') }}
|
RUN docker-php-ext-install {{ dockerfile.stages.build.extensions.install | join(' ') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue