From 3147589a60566615e3695ae299a6a6715dae0f7b Mon Sep 17 00:00:00 2001 From: Max Ageev Date: Thu, 17 Nov 2022 21:01:46 +0400 Subject: [PATCH] Update README.md (#658) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 56529bc..1d73842 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,11 @@ COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr RUN install-php-extensions gd xdebug ``` +Alternative that does not increase the image size with the tool +``` +RUN --mount=type=bind,from=mlocati/php-extension-installer:1.5,source=/usr/bin/install-php-extensions,target=/usr/local/bin/install-php-extensions \ + install-php-extensions pcntl +``` > **Warning**: by using this method you may use an outdated version of the `mlocati/php-extension-installer` image. >