From 76f4fcf7bdafd2df5b69d97be9aa4881dd171f27 Mon Sep 17 00:00:00 2001 From: Shao Yu-Lung Date: Wed, 11 Oct 2023 21:48:38 +0800 Subject: [PATCH] chore: Support PECL --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8409d44..7d9c6c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -121,9 +121,13 @@ RUN set -eux; \ if [ $(php -r "echo PHP_MAJOR_VERSION;") != "8" ]; then \ apt-get install -y php${PHP_TAG_VERSION}-xmlrpc; \ php -m | grep -oiE '^xmlrpc$'; \ - fi + fi; \ # RUN set -eux; docker-php-ext-install xsl # RUN set -eux; docker-php-ext-install zend_test + ### PECL + apt-get install -y php${PHP_TAG_VERSION}-dev; \ + apt-get install -y php-pear; \ + pecl channel-update pecl.php.net RUN php${PHP_TAG_VERSION} -m