Merge pull request #2681 from akoneko/patch-1

Fix PHP-Worker GD "Unable to init from given binary data"
This commit is contained in:
Shao Yu-Lung (Allen) 2020-09-28 13:31:35 +08:00 committed by GitHub
commit f6c53ce538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -56,7 +56,8 @@ RUN if [ ${INSTALL_BZ2} = true ]; then \
#Install GD package:
ARG INSTALL_GD=false
RUN if [ ${INSTALL_GD} = true ]; then \
apk add --update --no-cache libpng-dev; \
apk add --update --no-cache freetype-dev libjpeg-turbo-dev jpeg-dev libpng-dev; \
docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ && \
docker-php-ext-install gd \
;fi

View File

@ -62,7 +62,8 @@ fi
#Install GD package:
ARG INSTALL_GD=false
RUN if [ ${INSTALL_GD} = true ]; then \
apk add --update --no-cache libpng-dev; \
apk add --update --no-cache freetype-dev libjpeg-turbo-dev jpeg-dev libpng-dev; \
docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ && \
docker-php-ext-install gd \
;fi