Skip to content

Commit cc95af5

Browse files
swissspidyclaude
andauthored
Install the pcntl extension in the Docker image (#430)
The PHP builds of shivammathur/setup-php on the GitHub runners have pcntl, but the official PHP images do not, so packages that fork, such as wp-cli/batch-command, behaved differently in the containers than on the host. Claude-Session: https://claude.ai/code/session_01UWTd5oZXFWfL1mxtssHXwz Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 434b234 commit cc95af5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎utils/docker/Dockerfile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN . /etc/os-release \
1212
fi
1313

1414
# Images of older PHP versions are based on Debian releases whose packages have moved to the archive.
15+
# The extensions match those the PHP builds of shivammathur/setup-php have on the GitHub runners,
16+
# such as pcntl, which the official images leave out.
1517
RUN install_packages() { \
1618
apt-get update && apt-get install -y --no-install-recommends \
1719
curl git jq less libmariadb3 mariadb-client procps sqlite3 subversion unzip vim-tiny zip \
@@ -24,7 +26,7 @@ RUN install_packages() { \
2426
} ) \
2527
&& ( docker-php-ext-configure gd --with-freetype --with-jpeg \
2628
|| docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr ) \
27-
&& docker-php-ext-install exif gd mysqli pdo_mysql zip \
29+
&& docker-php-ext-install exif gd mysqli pcntl pdo_mysql zip \
2830
&& ( php -m | grep -qi '^zend opcache$' || docker-php-ext-install opcache ) \
2931
&& rm -rf /var/lib/apt/lists/*
3032

0 commit comments

Comments
 (0)