diff --git a/25/fpm-alpine/Dockerfile b/25/fpm-alpine/Dockerfile index d9baf461..a8ad27ea 100644 --- a/25/fpm-alpine/Dockerfile +++ b/25/fpm-alpine/Dockerfile @@ -1,5 +1,5 @@ # DO NOT EDIT: created by update.sh from Dockerfile-alpine.template -FROM php:8.1-fpm-alpine3.16 +FROM php:8.0-fpm-alpine3.16 # entrypoint.sh and cron.sh dependencies RUN set -ex; \ diff --git a/update.sh b/update.sh index d044b77f..d19cad71 100755 --- a/update.sh +++ b/update.sh @@ -2,6 +2,8 @@ set -eo pipefail declare -A alpine_version=( + # https://github.com/nextcloud/server/issues/32003 + # Nextcloud 25 requires OpenSSL 1.1 [25]='3.16' [default]='3.17' ) @@ -121,7 +123,16 @@ function create_variant() { # Nextcloud 26+ recommends sysvsem case "$version" in - 24|25 ) + 25 ) + case "$variant" in + fpm-alpine ) + # Alpine 3.16 / OpenSSL 1.1 is only available for PHP 8.0 + sed -ri -e ' + s/FROM php:8\.1-fpm-alpine/FROM php:8.0-fpm-alpine/ + ' "$dir/Dockerfile" + ;; + esac + sed -ri -e ' /sysvsem/d ' "$dir/Dockerfile"