mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
unify dockerfiles
This commit is contained in:
parent
406bbbc687
commit
92d2ab4a82
9 changed files with 30 additions and 302 deletions
19
images/php/configure_gd.sh
Executable file
19
images/php/configure_gd.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue