From 63640f5aa9365a73dc33609d0ee95031a9ead506 Mon Sep 17 00:00:00 2001
From: "Alexander V. Tikhonov" <avtikhon@tarantool.org>
Date: Tue, 10 Dec 2019 08:23:22 +0300
Subject: [PATCH] build: added static build subdirectory cleanup

Added the command for 'build' directory cleanup. It purges all
artefacts produced for curl build, including the old configuration
in build/curl.
---
 Dockerfile.staticbuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Dockerfile.staticbuild b/Dockerfile.staticbuild
index 66342fa4ef..794c9d9325 100644
--- a/Dockerfile.staticbuild
+++ b/Dockerfile.staticbuild
@@ -70,9 +70,12 @@ RUN set -x && \
     git submodule init && \
     git submodule update
 
+# Cleanup for 'build' directory added, because it purges all artefacts
+# produced for curl build, including the old configuration in build/curl
 RUN set -x && \
     find . -name 'CMakeFiles' -type d -exec rm -rf {} + && \
-    find . -name 'CMakeCache.txt' -type f -delete
+    find . -name 'CMakeCache.txt' -type f -delete && \
+    rm -rf build
 
 RUN pip install -r /tarantool/test-run/requirements.txt
 
-- 
GitLab