mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-11-20 09:21:17 +00:00
exclude mounts (e.g.: /proc) from cleanup
This commit is contained in:
1 parent
089258a746
commit
9d29b23db2
1 file changed
+2
-2
+2
-2
@@ -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