From d0b150c5ef41b9169181374282464d1f69bc01fd Mon Sep 17 00:00:00 2001 From: Panos Mavrogiorgos Date: Fri, 4 Jan 2019 08:01:33 +0200 Subject: [PATCH] Remove python bytecode --- image/cleanup.sh | 4 ++++ 1 file changed, 4 insertions(+) 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_*