Parcourir la source

Fix GD "Unable to init from given binary data"

Shao Yu-Lung (Allen) il y a 4 ans
Parent
commit
2467717f17
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      laravel-horizon/Dockerfile

+ 2 - 1
laravel-horizon/Dockerfile

@@ -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