1
0
mirror of https://github.com/php/pie.git synced 2026-03-23 23:12:17 +01:00

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.
This commit is contained in:
Tim Düsterhus
2026-03-17 10:08:06 +01:00
parent c37df9e1cd
commit 4bb1f36ed8

View File

@@ -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();"]
```