mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-04 18:35:33 +01:00
fix: jpg support for image styles
This commit is contained in:
parent
590cb8ffc0
commit
b121f2fb77
2 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue