Switch to using -L for `find` instead of -follow
MODIFY
repo2docker/buildpacks/conda/__init__.py
repo2docker/buildpacks/conda/__init__.py
@@ -191,9 +191,9 @@ class CondaBuildPack(BaseImage):
r"""
conda env update -p {0} -f "{1}" && \
conda clean --all -f -y && \
- find ${{CONDA_DIR}} -follow -type f -name '*.a' -delete && \
- find ${{CONDA_DIR}} -follow -type f -name '*.pyc' -delete && \
- find ${{CONDA_DIR}} -follow -type f -name '*.js.map' -delete && \
+ 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

MODIFY
repo2docker/buildpacks/conda/install-miniconda.bash
repo2docker/buildpacks/conda/install-miniconda.bash
@@ -71,9 +71,9 @@ fi
conda clean --all -f -y
# Remove static libaries, compiled Python byte code, JS map files
-find ${CONDA_DIR} -follow -type f -name '*.a' -delete
-find ${CONDA_DIR} -follow -type f -name '*.pyc' -delete
-find ${CONDA_DIR} -follow -type f -name '*.js.map' -delete
+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}

Switch to using -L for `find` instead of -follow