diff --git a/README.md b/README.md index fe37ed8..9664f0a 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ RUN curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases opcache ``` -### Copying the script from a Docker image +#### Copying the script from a Docker image ```Dockerfile FROM php:7.2-cli @@ -64,7 +64,9 @@ 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 + +#### Using the script of a Docker image + ```Dockerfile 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