@@ -204,14 +204,30 @@ func doPhpBuild() {
204
204
205
205
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" }
206
206
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" }
208
208
phpExtEnable := []string {"mysqli" , "calendar" , "exif" , "bcmath" }
209
209
npmInstallGlobal := []string {}
210
210
211
211
if os .Getenv ("SF_CLI" ) == "yes" {
212
212
packageList = append (packageList , "symfony-cli" )
213
213
}
214
214
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
+
215
231
if os .Getenv ("PHP_VERSION" ) != "8.2" {
216
232
if os .Getenv ("PHP_IMAGICK" ) == "yes" {
217
233
peclInstall = append (peclInstall , "imagick" )
0 commit comments