Files
baseimage-docker_fr/image/cleanup.sh
2019-03-13 09:59:33 +01:00

16 lines
353 B
Bash
Executable File

#!/bin/bash
set -e
source /bd_build/buildconfig
set -x
apt-get clean
find /bd_build/ -not \( -name 'bd_build' -or -name 'buildconfig' -or -name 'cleanup.sh' \) -delete
rm -rf /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/*
# clean up python bytecode
find / -mount -name *.pyc -delete
find / -mount -name *__pycache__* -delete
rm -f /etc/ssh/ssh_host_*