Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions utils/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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.
Expand Down
Loading