From e019d5fa115d39193f4414fd45b546ba695eb0f7 Mon Sep 17 00:00:00 2001 From: Enderson Maia Date: Wed, 28 Jan 2015 11:48:35 -0300 Subject: [PATCH] Preserve /build/{cleanup.sh,buildconfig} files. These files are useful for those who create Docker images based on this baseimage, and need to make a final cleanup and/or use some configurations that are inside buildconfig file. --- image/cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/cleanup.sh b/image/cleanup.sh index d954a47..72ef0ce 100755 --- a/image/cleanup.sh +++ b/image/cleanup.sh @@ -4,7 +4,7 @@ source /bd_build/buildconfig set -x apt-get clean -rm -rf /bd_build +ls -d -1 /bd_build/**/* | grep -v "cleanup.sh" | grep -v "buildconfig" | xargs rm -f rm -rf /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/*