From 391f5bf4af484893b8cb78616b55b9d9fdf3016b Mon Sep 17 00:00:00 2001 From: Tim Head Date: Mon, 24 Jun 2019 15:01:44 +0200 Subject: [PATCH] Revert "[MRG] Remove more files during the image build to slimdown the image" --- repo2docker/buildpacks/conda/__init__.py | 3 --- repo2docker/buildpacks/conda/install-miniconda.bash | 5 ----- 2 files changed, 8 deletions(-) diff --git a/repo2docker/buildpacks/conda/__init__.py b/repo2docker/buildpacks/conda/__init__.py index e6212d0e..8e818bc4 100644 --- a/repo2docker/buildpacks/conda/__init__.py +++ b/repo2docker/buildpacks/conda/__init__.py @@ -191,9 +191,6 @@ class CondaBuildPack(BaseImage): r""" conda env update -p {0} -f "{1}" && \ conda clean --all -f -y && \ - find -L ${{CONDA_DIR}} -type f -name '*.a' -delete && \ - find -L ${{CONDA_DIR}} -type f -name '*.pyc' -delete && \ - find -L ${{CONDA_DIR}} -type f -name '*.js.map' -delete && \ conda list -p {0} """.format( env_prefix, environment_yml diff --git a/repo2docker/buildpacks/conda/install-miniconda.bash b/repo2docker/buildpacks/conda/install-miniconda.bash index f1567cd0..5ee2239d 100755 --- a/repo2docker/buildpacks/conda/install-miniconda.bash +++ b/repo2docker/buildpacks/conda/install-miniconda.bash @@ -70,11 +70,6 @@ fi # Clean things out! conda clean --all -f -y -# Remove static libaries, compiled Python byte code, JS map files -find -L ${CONDA_DIR} -type f -name '*.a' -delete -find -L ${CONDA_DIR} -type f -name '*.pyc' -delete -find -L ${CONDA_DIR} -type f -name '*.js.map' -delete - # Remove the big installer so we don't increase docker image size too much rm ${INSTALLER_PATH}