kopia lustrzana https://github.com/jupyterhub/repo2docker
Revert "[MRG] Remove more files during the image build to slimdown the image"
rodzic
199d14a4a3
commit
391f5bf4af
|
@ -191,9 +191,6 @@ class CondaBuildPack(BaseImage):
|
||||||
r"""
|
r"""
|
||||||
conda env update -p {0} -f "{1}" && \
|
conda env update -p {0} -f "{1}" && \
|
||||||
conda clean --all -f -y && \
|
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}
|
conda list -p {0}
|
||||||
""".format(
|
""".format(
|
||||||
env_prefix, environment_yml
|
env_prefix, environment_yml
|
||||||
|
|
|
@ -70,11 +70,6 @@ fi
|
||||||
# Clean things out!
|
# Clean things out!
|
||||||
conda clean --all -f -y
|
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
|
# Remove the big installer so we don't increase docker image size too much
|
||||||
rm ${INSTALLER_PATH}
|
rm ${INSTALLER_PATH}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue