From de091bbfd9d2cd9742e55711d00cdf83fff440e2 Mon Sep 17 00:00:00 2001
From: Rafal Gumienny <guma44@gmail.com>
Date: Wed, 14 Mar 2018 11:35:04 +0100
Subject: [PATCH] fix: SCHWED-3097 Lower the size of the image

---
 singularity/Singularity.1.7.1 | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/singularity/Singularity.1.7.1 b/singularity/Singularity.1.7.1
index 95c94175a..a8062218e 100644
--- a/singularity/Singularity.1.7.1
+++ b/singularity/Singularity.1.7.1
@@ -65,9 +65,9 @@ locale-gen en_US.UTF-8
 
 # INSTALL SOME PYTHON PACKAGES GLOBALY
 ######################################
-pip install --upgrade pip && pip install numpy==1.10.4 \
-                                         scipy==1.0.0 \
-                                         pandas==0.22.0
+pip install --upgrade pip && pip install --no-cache-dir numpy==1.10.4 \
+                                                        scipy==1.0.0 \
+                                                        pandas==0.22.0
 
 
 # SET UP VIRTUALENV
@@ -199,7 +199,19 @@ EOF
 
 jupyter nbextension enable nglview --py --sys-prefix
 
-# GO HOME
+# GO HOME AND CLEANUP
+apt-get purge -y cmake \
+                 wget \
+                 git \
+                 gfortran \
+                 python-pip \
+                 libbz2-dev \
+                 doxygen \
+                 swig
+apt-get clean
+apt-get autoremove -y
+
+cd $SRC_FOLDER && rm -rf $SRC_FOLDER/*
 #########
 
 cd /home
-- 
GitLab