🗃️ Update codebase 🗃️

Dockerfile
rootfs/root/docker/setup/05-custom.sh
rootfs/root/docker/setup/07-cleanup.sh
This commit is contained in:
2026-02-02 14:56:56 -05:00
parent 0d5c05e9fb
commit 7132dc29f0
3 changed files with 20 additions and 2 deletions
+8
View File
@@ -36,6 +36,14 @@ if [ -d "$HOME/.cache" ]; then rm -Rf "$HOME/.cache"; fi
# - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script
# Clean up pip cache and temporary Python files to reduce image size
if command -v python3 >/dev/null 2>&1; then
python3 -m pip cache purge 2>/dev/null || true
find /usr -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true
find /usr -type f -name '*.pyc' -delete 2>/dev/null || true
find /usr -type f -name '*.pyo' -delete 2>/dev/null || true
fi
# - - - - - - - - - - - - - - - - - - - - - - - - -
# Set the exit code
#exitCode=$?