From 351d24dcf6788d6673039491f336d3fc3b607d45 Mon Sep 17 00:00:00 2001 From: Frenki Herlambang Date: Mon, 16 Nov 2020 01:30:38 +0700 Subject: [PATCH] fix unrecognized options GD config on php 7.4 --- laravel-horizon/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile index 7e3cfa30..f36315a6 100644 --- a/laravel-horizon/Dockerfile +++ b/laravel-horizon/Dockerfile @@ -57,7 +57,11 @@ RUN if [ ${INSTALL_BZ2} = true ]; then \ ARG INSTALL_GD=false RUN if [ ${INSTALL_GD} = true ]; then \ 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/ && \ + if [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \ + docker-php-ext-configure gd --with-freetype --with-jpeg; \ + else \ + docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/; \ + fi && \ docker-php-ext-install gd \ ;fi