Skip to content

Commit 4bb1f36

Browse files
committed
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.
1 parent c37df9e commit 4bb1f36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin
6262
apt-get update; \
6363
apt-get install -y --no-install-recommends unzip; \
6464
# Use PIE to install an extension...
65-
pie install asgrim/example-pie-extension; \
65+
pie install --no-cache \
66+
asgrim/example-pie-extension; \
6667
# Clean up `unzip`.
6768
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false unzip; \
6869
rm -rf /var/lib/apt/lists/*;
6970

70-
7171
CMD ["php", "-r", "example_pie_extension_test();"]
7272
```
7373

0 commit comments

Comments
 (0)