From 4bb1f36ed863425df9abbc5950020be2bb9bcf22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 17 Mar 2026 10:08:06 +0100 Subject: [PATCH] Add `--no-cache` to Docker instructions The composer cache is not reusable within Docker, as each build is independent. It thus just bloats the final image. --- docs/usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index a720e39c..4bce9b2e 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -62,12 +62,12 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin apt-get update; \ apt-get install -y --no-install-recommends unzip; \ # Use PIE to install an extension... - pie install asgrim/example-pie-extension; \ + pie install --no-cache \ + asgrim/example-pie-extension; \ # Clean up `unzip`. apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false unzip; \ rm -rf /var/lib/apt/lists/*; - CMD ["php", "-r", "example_pie_extension_test();"] ```