1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

unify dockerfiles

This commit is contained in:
Robin Appelman 2021-12-15 16:53:27 +01:00
commit 92d2ab4a82
9 changed files with 30 additions and 302 deletions

19
images/php/configure_gd.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
PHP=$(echo "$PHP_VERSION" | cut -c -3)
echo "php $PHP"
if [ "$PHP" = "7.2" ] || [ "$PHP" = "7.3" ]; then
docker-php-ext-configure gd \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-freetype-dir
else
docker-php-ext-configure gd \
--enable-gd \
--with-jpeg \
--with-freetype
fi