Update README.md (#658)

pull/659/head
Max Ageev 2022-11-17 21:01:46 +04:00 committed by GitHub
parent 60f1b37ba1
commit 3147589a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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.
>