From 974312aa514a11cb27557308e15351cd6b72ff4a Mon Sep 17 00:00:00 2001
From: Moritz Maxeiner <mm@ucw.sh>
Date: Fri, 17 Jan 2020 03:33:58 +0100
Subject: [PATCH] centos-7: Cleanup opencv build files

---
 centos-7/Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/centos-7/Dockerfile b/centos-7/Dockerfile
index fa2539d..23c48ae 100644
--- a/centos-7/Dockerfile
+++ b/centos-7/Dockerfile
@@ -190,7 +190,9 @@ RUN version=3.4.8 && \
         -D WITH_ZLIB=ON -D BUILD_ZLIB=OFF \
         -D WITH_V4L=ON \
         && \
-    ninja -C build install
+    ninja -C build install && \
+    cd .. && \
+    rm -rf opencv-${version}* opencv_contrib-${version}*
 
 # MXNet
 ENV MXNet_DIR /opt/mxnet-1.5.1
-- 
GitLab