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:
@@ -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();"]
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user