diff --git a/image/cleanup.sh b/image/cleanup.sh index bd53c72..cfe7246 100755 --- a/image/cleanup.sh +++ b/image/cleanup.sh @@ -8,4 +8,8 @@ find /bd_build/ -not \( -name 'bd_build' -or -name 'buildconfig' -or -name 'clea rm -rf /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/* +# clean up python bytecode +find / -name *.pyc -delete +find / -name *__pycache__* -delete + rm -f /etc/ssh/ssh_host_*