From d51c7b818d99bf8db601e54c0361bd96d6588d90 Mon Sep 17 00:00:00 2001 From: Yannoff Date: Sun, 10 Jan 2021 20:32:31 +0100 Subject: [PATCH] [documentation] Add caveat on COPY cached image - Add a caveat on cached image pitfall in the `COPY` section of the `README` --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index eb8ddcd..51ced73 100644 --- a/README.md +++ b/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 `-` to the module name.