diff --git a/utils/docker/Dockerfile b/utils/docker/Dockerfile index 5d5175b0c..b48181d1e 100644 --- a/utils/docker/Dockerfile +++ b/utils/docker/Dockerfile @@ -13,11 +13,12 @@ RUN . /etc/os-release \ # Images of older PHP versions are based on Debian releases whose packages have moved to the archive. # The extensions match those the PHP builds of shivammathur/setup-php have on the GitHub runners, -# such as pcntl, which the official images leave out. +# such as pcntl, which the official images leave out, and mbstring, which they no longer build in +# from PHP 8.6 on. RUN install_packages() { \ apt-get update && apt-get install -y --no-install-recommends \ curl git jq less libmariadb3 mariadb-client procps sqlite3 subversion unzip vim-tiny zip \ - libfreetype6-dev libjpeg-dev libpng-dev libzip-dev; \ + libfreetype6-dev libjpeg-dev libonig-dev libpng-dev libzip-dev; \ } \ && ( install_packages || { \ sed -i -e 's|deb.debian.org|archive.debian.org|g' -e 's|security.debian.org|archive.debian.org|g' -e '/-updates/d' /etc/apt/sources.list \ @@ -28,6 +29,7 @@ RUN install_packages() { \ || docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr ) \ && docker-php-ext-install exif gd mysqli pcntl pdo_mysql zip \ && ( php -m | grep -qi '^zend opcache$' || docker-php-ext-install opcache ) \ + && ( php -m | grep -qix mbstring || docker-php-ext-install mbstring ) \ && rm -rf /var/lib/apt/lists/* # The SQLite integration plugin needs SQLite 3.37 or later, which older Debian releases do not ship.