Skip to content

Commit 5bae1db

Browse files
committed
add libgl install for opencv
1 parent 91ca473 commit 5bae1db

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

planet-notebook-docker/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ FROM jupyter/minimal-notebook:414b5d749704
55
# install dependencies
66
COPY requirements.txt /tmp/requirements.txt
77

8+
# Required for opencv
9+
# https://github.com/conda-forge/pygridgen-feedstock/issues/10#issuecomment-365914605
10+
USER root
11+
RUN apt-get update && apt-get install -yq --no-install-recommends \
12+
libgl1-mesa-glx \
13+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
14+
USER $NB_UID
15+
816
# without channel set to strict, a conflicting version of gdal
917
# is sometimes installed from the default channel
1018
RUN conda config --set channel_priority strict && \

0 commit comments

Comments
 (0)