1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 04:18:46 +00:00
Files
baseimage-docker/image/cleanup.sh
Panos Mavrogiorgos d0b150c5ef Remove python bytecode
2019-01-04 08:18:58 +02:00

16 lines
339 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 / -name *.pyc -delete
find / -name *__pycache__* -delete
rm -f /etc/ssh/ssh_host_*