forked from Kitware/ipyvtklink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (39 loc) · 1.09 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM continuumio/miniconda3 AS conda
MAINTAINER Bane Sullivan "bane.sullivan@kitware.com"
SHELL ["/bin/bash", "-c"]
ARG NB_USER=jovyan
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
RUN apt-get update && \
apt-get install -y --no-install-recommends libgl1-mesa-dev xvfb tini && \
rm -rf /var/lib/apt/lists/*
RUN conda install --quiet --yes nodejs
RUN conda install --quiet --yes -c conda-forge \
ipywidgets \
ipycanvas>=0.5.0 \
ipyevents>=0.8.0 \
jupyterlab \
ipython \
pillow \
pyvista \
matplotlib \
scipy
RUN jupyter labextension install \
@jupyter-widgets/jupyterlab-manager \
ipycanvas \
ipyevents
WORKDIR $HOME
COPY . ./ipyvtk_simple/
WORKDIR $HOME/ipyvtk_simple
RUN pip install .
COPY start.sh /sbin/start_xvfb.sh
RUN chmod a+x /sbin/start_xvfb.sh
ENTRYPOINT ["tini", "-g", "--", "start_xvfb.sh"]
CMD ["/bin/bash"]
# CMD ["jupyter", "notebook", "--port=8878", "--no-browser", "--ip=0.0.0.0", "--allow-root"]