Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Fix gd installation on PHP 7.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Dec 30, 2019
1 parent 521bba2 commit 6b0f201
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generators/app/partials/php/Dockerfile.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ RUN update-ca-certificates
{{#inArray phpExtensions "gd"}}

RUN apt-get update -y && apt-get install -y libpng-dev libfreetype6-dev libjpeg62-turbo-dev && rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure gd \
--with-freetype{{#semver phpVersion '<7.4'}}-dir=/usr/include/{{/semver}} \
--with-jpeg{{#semver phpVersion '<7.4'}}-dir=/usr/include/{{/semver}} \
&& docker-php-ext-install gd
{{/inArray}}
{{#inArray phpExtensions "opcache"}}
Expand Down

0 comments on commit 6b0f201

Please sign in to comment.