add php_configure extensions helper
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
13
docker/usr/local/bin/php_configure.sh
Executable file
13
docker/usr/local/bin/php_configure.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
PHP_VERSION=`php -r 'echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;'`
|
||||
|
||||
if [ $PHP_VERSION = '74' ]; then
|
||||
docker-php-ext-configure gd --with-freetype --with-jpeg
|
||||
else
|
||||
docker-php-ext-configure gd \
|
||||
--with-freetype-dir=/usr/lib/ \
|
||||
--with-png-dir=/usr/lib/ \
|
||||
--with-jpeg-dir=/usr/lib/ \
|
||||
--with-gd
|
||||
fi
|
Reference in New Issue
Block a user