mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 08:32:42 +00:00
Merge pull request #246 from yannoff/documentation/warn-on-cached-image-pitfall-when-using-copy
[documentation] Add caveat on COPY cached image
This commit is contained in:
commit
b143e8f116
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -37,6 +37,17 @@ COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr
|
|||
RUN install-php-extensions gd xdebug
|
||||
```
|
||||
|
||||
#### *Beware*
|
||||
|
||||
*When building locally, be sure you have the latest version of the `mlocati/php-extension-installer` image by running :*
|
||||
|
||||
```sh
|
||||
docker pull mlocati/php-extension-installer
|
||||
```
|
||||
|
||||
*otherwise the `COPY` instruction could use a previously downloaded, outdated version of the image stored in the local docker cache.*
|
||||
|
||||
|
||||
### Installing a specific version of an extension
|
||||
|
||||
Simply append `-<version>` to the module name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue