mirror of
https://github.com/nextcloud/docker.git
synced 2025-05-03 07:30:53 +02:00
Upgrade PHP to 7.4 for 19.0 (#1108)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
parent
ccdf46609f
commit
ba1500b05e
6 changed files with 25 additions and 18 deletions
23
update.sh
23
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue