Create 30-virt.sh for layer cleanup
Add cleanup script for build process
This commit is contained in:
1 parent
a2b385945f
commit
a797072983
1 file changed
+13
@@ -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