@@ -204,14 +204,30 @@ func doPhpBuild() {
204204
205205 packageList := []string {"gnupg2" , "openssl" , "git" , "unzip" , "libzip-dev" , "nano" , "libpng-dev" , "libmagickwand-dev" , "curl" , "openssh-client" , "less" , "inkscape" , "cron" , "exiftool" , "libicu-dev" , "libmcrypt-dev" , "libc-client-dev" , "libkrb5-dev" , "libssl-dev" , "libxslt1-dev" , "bash-completion" }
206206 peclInstall := []string {}
207- phpExtInstall := []string {"pdo" , "pdo_mysql" , "opcache" , "zip" , "gd" , " mysqli" , "exif" , "bcmath" , "calendar" , "intl" , "soap" , "imap " , "sockets" , "xsl" }
207+ phpExtInstall := []string {"pdo" , "pdo_mysql" , "opcache" , "zip" , "mysqli" , "exif" , "bcmath" , "calendar" , "intl" , "soap" , "sockets" , "xsl" }
208208 phpExtEnable := []string {"mysqli" , "calendar" , "exif" , "bcmath" }
209209 npmInstallGlobal := []string {}
210210
211211 if os .Getenv ("SF_CLI" ) == "yes" {
212212 packageList = append (packageList , "symfony-cli" )
213213 }
214214
215+ if os .Getenv ("PHP_GD" ) == "yes" {
216+ phpExtInstall = append (phpExtInstall , "gd" )
217+
218+ util .Sed ("__PHP_GD__" , "&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/" , "config/php/Dockerfile" )
219+ } else {
220+ util .Sed ("__PHP_GD__" , "" , "config/php/Dockerfile" )
221+ }
222+
223+ if os .Getenv ("PHP_IMAP" ) == "yes" {
224+ phpExtInstall = append (phpExtInstall , "imap" )
225+
226+ util .Sed ("__PHP_IMAP__" , "&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl" , "config/php/Dockerfile" )
227+ } else {
228+ util .Sed ("__PHP_IMAP__" , "" , "config/php/Dockerfile" )
229+ }
230+
215231 if os .Getenv ("PHP_VERSION" ) != "8.2" {
216232 if os .Getenv ("PHP_IMAGICK" ) == "yes" {
217233 peclInstall = append (peclInstall , "imagick" )
0 commit comments