mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-26 20:38:58 +00:00
exclude mounts (e.g.: /proc) from cleanup
This commit is contained in:
@@ -9,7 +9,7 @@ rm -rf /tmp/* /var/tmp/*
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# clean up python bytecode
|
# clean up python bytecode
|
||||||
find / -name *.pyc -delete
|
find / -mount -name *.pyc -delete
|
||||||
find / -name *__pycache__* -delete
|
find / -mount -name *__pycache__* -delete
|
||||||
|
|
||||||
rm -f /etc/ssh/ssh_host_*
|
rm -f /etc/ssh/ssh_host_*
|
||||||
|
|||||||
Reference in New Issue
Block a user