1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 12:29:07 +00:00

Preserve /bd_build/{cleanup.sh,buildconfig} files. See #188

Signed-off-by: Enderson Maia <endersonmaia@gmail.com>
This commit is contained in:
Enderson Maia
2017-03-21 15:46:37 -03:00
parent 17a5cede8c
commit 59677e23c3

View File

@@ -4,7 +4,7 @@ source /bd_build/buildconfig
set -x set -x
apt-get clean apt-get clean
ls -d -1 /bd_build/**/* | grep -v "cleanup.sh" | grep -v "buildconfig" | grep -v "services/" | xargs rm -f find /bd_build/ -not \( -name 'bd_build' -or -name 'buildconfig' -or -name 'cleanup.sh' \) -delete
rm -rf /tmp/* /var/tmp/* rm -rf /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*