[documentation] Add caveat on COPY cached image
- Add a caveat on cached image pitfall in the `COPY` section of the `README`pull/246/head
parent
bba413a175
commit
d51c7b818d
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
|
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
|
### Installing a specific version of an extension
|
||||||
|
|
||||||
Simply append `-<version>` to the module name.
|
Simply append `-<version>` to the module name.
|
||||||
|
|
Loading…
Reference in New Issue