summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh23
1 files changed, 17 insertions, 6 deletions
diff --git a/update.sh b/update.sh
index 9fa90267..8cb55e85 100755
--- a/update.sh
+++ b/update.sh
@@ -2,7 +2,10 @@
set -eo pipefail
declare -A php_version=(
- [default]='7.3'
+ [default]='7.4'
+ [18.0]='7.3'
+ [17.0]='7.3'
+ [16.0]='7.3'
)
declare -A cmd=(
@@ -130,11 +133,19 @@ function create_variant() {
s/%%CRONTAB_INT%%/'"$crontabInt"'/g;
' "$dir/Dockerfile"
- if [[ "$phpVersion" != 7.3 ]]; then
- sed -ri \
- -e '/libzip-dev/d' \
- "$dir/Dockerfile"
- fi
+ case "$phpVersion" in
+ 7.4 )
+ sed -ri -e '
+ \@docker-php-ext-configure gmp --with-gmp@d;
+ \@/usr/include/gmp.h@d;
+ ' "$dir/Dockerfile"
+ ;;
+ 7.3 )
+ sed -ri -e '
+ s@gd --with-freetype --with-jpeg --with-webp@gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr@g;
+ ' "$dir/Dockerfile"
+ ;;
+ esac
# Copy the shell scripts
for name in entrypoint cron; do