-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
28 lines (23 loc) · 740 Bytes
/
Dockerfile
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
FROM jupyter/base-notebook:python-3.9.7
MAINTAINER Bane Sullivan "bane.sullivan@kitware.com"
USER root
RUN apt-get update \
&& apt-get install -yq --no-install-recommends \
libfontconfig1 \
libxrender1 \
libosmesa6 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
COPY setup.py /build-context/
COPY LICENSE /build-context/
COPY README.md /build-context/
COPY ipyvtklink /build-context/ipyvtklink
WORKDIR /build-context/
RUN pip install .
# Install PyVista's custom VTK wheel
RUN pip install https://github.com/pyvista/pyvista-wheels/raw/main/vtk-osmesa-9.1.0-cp39-cp39-linux_x86_64.whl
# allow jupyterlab for ipyvtk
ENV JUPYTER_ENABLE_LAB=yes
ENV PYVISTA_USE_IPYVTK=true
USER jovyan
WORKDIR $HOME
COPY vtk.ipynb $HOME/