Fix README headings
parent
eff33351f6
commit
2084459880
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue