Skip to content

Commit 576b256

Browse files
author
Nate Weisiger
committed
Pinned rasterio version. Added opencv-python to Python 2 and 3
1 parent 9599650 commit 576b256

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

planet-notebook-docker/Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN conda create --yes -p $CONDA_DIR/envs/python2 python=2.7
5555

5656
# Add pip2.7 shortcut and install Python2 packages
5757
RUN ln -s $CONDA_DIR/envs/python2/bin/pip $CONDA_DIR/bin/pip2.7 && \
58-
pip install --upgrade pip && \
58+
pip2.7 install --upgrade pip && \
5959
pip2.7 install \
6060
setuptools \
6161
matplotlib \
@@ -67,13 +67,15 @@ RUN ln -s $CONDA_DIR/envs/python2/bin/pip $CONDA_DIR/bin/pip2.7 && \
6767
ipyleaflet \
6868
numpy \
6969
shapely \
70-
--no-binary :all: rasterio \
70+
--no-binary :all: rasterio==1.0a9 \
7171
geopandas \
7272
tqdm \
7373
planet \
7474
pygdal==2.1.3.3 \
7575
geojsonio \
76-
scikit-learn
76+
scikit-learn && \
77+
pip2.7 install \
78+
opencv-python==3.3.0.10
7779

7880
# Add pip shortcut and install Python3 packages
7981
RUN pip install --upgrade pip && \
@@ -85,12 +87,14 @@ RUN pip install --upgrade pip && \
8587
ipyleaflet \
8688
numpy \
8789
shapely \
88-
--no-binary :all: rasterio \
90+
--no-binary :all: rasterio==1.0a9 \
8991
geopandas \
9092
tqdm \
9193
planet \
9294
pygdal==2.1.3.3 \
93-
geojsonio
95+
geojsonio && \
96+
pip install \
97+
opencv-python==3.3.0.10
9498

9599
# Activate Python2 kernel globally and upon kernel launch.
96100
USER root

0 commit comments

Comments
 (0)