From 208445988072a819191aaf56e2cfb4960b917f2e Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 9 Mar 2023 13:18:29 +0100 Subject: [PATCH] Fix README headings --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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