/
Dockerfile
50 lines (40 loc) · 1.36 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
49
50
# note that this Dockerfile is meant for notebooks and you can install this package directly
FROM jupyter/minimal-notebook
# [mybinder specific]
# https://github.com/binder-examples/minimal-dockerfile
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}
# debug print versions
RUN python3 --version
RUN jupyter --version
RUN node --version
# [mybinder specific]
# Make sure the contents of our repo are in ${HOME}
USER ${NB_USER}
COPY . ${HOME}
#USER root
WORKDIR ${HOME}
#RUN apt update && \
# DEBIAN_FRONTEND="noninteractive" apt install python3 python3-pip npm git -y
RUN pip3 install ipywidgets
RUN jupyter nbextension enable --py widgetsnbextension
# install fresh dependencies from git (not required, there are pip packages)
RUN git clone --depth=1 https://github.com/Nic30/hwtLib.git
RUN pip3 install -r hwtLib/doc/requirements.txt
RUN pip3 install git+git://github.com/Nic30/hwtLib.git@master#egg=hwtLib
RUN pip3 install git+git://github.com/Nic30/hwtGraph.git@master#egg=hwtGraph
# install this library
RUN pip3 install .
# install library with examples
RUN pip3 install git+https://github.com/Nic30/hwtLib.git
# [mybinder specific]
#RUN chown -R ${NB_UID} ${HOME}
#USER ${NB_USER}
RUN jupyter trust examples/*.ipynb