add php_configure extensions helper
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-06-14 18:26:16 +02:00
parent 9f5e22fe89
commit af76d066c9
2 changed files with 19 additions and 6 deletions

View 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