Skip to content

Commit 54c33da

Browse files
authored
Fix conda install failure for tslearn by falling back to pip (#384)
* Fix conda install failure for tslearn by falling back to pip * clean/no-cache-dir to reduce Docker image size from 8.11 GB to 5.94GB
1 parent 9154aba commit 54c33da

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

planet-notebook-docker/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ USER $NB_UID
1616
# without channel set to strict, a conflicting version of gdal
1717
# is sometimes installed from the default channel
1818
RUN conda config --set channel_priority strict && \
19-
conda install -y -c conda-forge --file /tmp/requirements.txt
19+
conda install -y -c conda-forge --file /tmp/requirements.txt && \
20+
conda clean --all -f -y
21+
22+
# This fails to install under conda
23+
RUN pip install --no-cache-dir tslearn
2024

2125
# Attempts to avoid having to hardcode this failed.
2226
# ref: https://github.com/planetlabs/notebooks/issues/101
2327
ENV PROJ_LIB=/opt/conda/share/proj
2428

25-
WORKDIR /home/jovyan/work
29+
WORKDIR /home/jovyan/work

planet-notebook-docker/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ scikit-learn
2424
sentinelhub
2525
shapely
2626
tqdm
27-
tslearn

0 commit comments

Comments
 (0)