-
Notifications
You must be signed in to change notification settings - Fork 317
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 2025-09-15 build
# https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-minimal-notebook
FROM quay.io/jupyter/minimal-notebook:8515ad39f045
# Copy requirements file for package installation
COPY requirements.txt /tmp/requirements.txt
# libgl Required for opencv
# https://github.com/conda-forge/pygridgen-feedstock/issues/10#issuecomment-365914605
USER root
RUN apt-get update && apt-get install -yq --no-install-recommends \
libgl1 libglx-mesa0 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
USER $NB_UID
# without channel set to strict, a conflicting version of gdal
# is sometimes installed from the default channel
RUN conda config --set channel_priority strict && \
conda install -y -c conda-forge --file /tmp/requirements.txt && \
conda clean --all -f -y
# This fails to install under conda
RUN pip install --no-cache-dir tslearn
# Attempts to avoid having to hardcode this failed.
# ref: https://github.com/planetlabs/notebooks/issues/101
ENV PROJ_LIB=/opt/conda/share/proj
WORKDIR /home/jovyan/work