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 = [
|
||||
'git',
|
||||
'libjpeg-dev',
|
||||
'libpng-dev',
|
||||
'libzip-dev',
|
||||
// TODO: only add `mariadb-client` if MariaDB is used.
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue