Create 30-virt.sh for layer cleanup
Add cleanup script for build process
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
set -eoux pipefail
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# --- 2. Die sofortige Bereinigung (WICHTIG!) ---
|
||||||
|
echo "Cleaning up this layer..."
|
||||||
|
dnf5 clean all || true
|
||||||
|
dnf5 autoremove -y || true
|
||||||
|
rm -rf /tmp/* /var/tmp/* || true
|
||||||
|
|
||||||
Reference in New Issue
Block a user