1 parent
2f8bf49626
commit
c0cbf6e08b
6 files changed
+8
-15
No files matched your search
+6
-2
@@ -49,12 +49,16 @@ Ohne Loeschen deaktivieren:
|
||||
## Ausfuehrung im Containerfile
|
||||
|
||||
```dockerfile
|
||||
RUN --mount=type=bind,from=ctx,source=/build/10-repos.sh,target=/tmp/10-repos.sh \
|
||||
RUN --mount=type=bind,from=build-ctx,source=/build/10-repos.sh,target=/tmp/10-repos.sh \
|
||||
--mount=type=cache,dst=/var/cache \
|
||||
--mount=type=cache,dst=/var/log \
|
||||
--mount=type=tmpfs,dst=/tmp \
|
||||
bash /tmp/10-repos.sh && dnf5 clean all
|
||||
bash /tmp/10-repos.sh
|
||||
```
|
||||
|
||||
Kein `dnf5 clean all` in den Zwischenlayern: das wuerde den geteilten Cache-Mount
|
||||
sofort wieder leeren. Die Bereinigung erfolgt einmalig in `99-cleanup.sh`.
|
||||
|
||||
## Hinweise
|
||||
|
||||
- Scripts laufen als root waehrend des Builds
|
||||
|
||||
Reference in new issue
Block a user