From bc8a86dff8e9ce8cc35532c2da632e0dc85aa3d1 Mon Sep 17 00:00:00 2001 From: "Alexander D. Kanevskiy" Date: Wed, 13 Mar 2019 19:46:08 +0200 Subject: [PATCH] Cleanup miniconda caches after environment is created There is no sense to ship caches and downloaded archives in the container. Cleaning it will save about 500Mb --- stacks/dlrs/mkl/setup_mkl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/dlrs/mkl/setup_mkl.sh b/stacks/dlrs/mkl/setup_mkl.sh index 759f4aa..8813dbb 100755 --- a/stacks/dlrs/mkl/setup_mkl.sh +++ b/stacks/dlrs/mkl/setup_mkl.sh @@ -13,7 +13,7 @@ mkdir -p /etc/profile.d && \ source ~/.bashrc # create an env and install Tensorflow echo "Installing Tensorflow with MKL..." -conda create -y -n tf_env tensorflow nltk && \ +conda create -y -n tf_env tensorflow nltk && conda clean --all -y && \ echo "export PATH=/opt/conda/envs/tf_env/bin:$PATH" >> ~/.bashrc && \ echo "conda activate tf_env" >> ~/.bashrc ln -s -f /opt/conda/envs/tf_env/bin/python /usr/bin/python