forked from wnd-charm/wnd-charm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (34 loc) · 1.06 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
FROM jupyterhub/jupyterhub
MAINTAINER Ben Neely <[email protected]>
# install node.js and npm
RUN apt-get -qq update && apt-get install -y \
git \
vim \
build-essential \
libtiff5-dev \
libfftw3-dev \
automake \
python-dev \
python-setuptools \
python-numpy \
python-scipy \
python-matplotlib \
python-tifffile \
python-pandas \
python-sklearn \
python-skimage \
swig
RUN git clone https://github.com/wnd-charm/wnd-charm.git /wnd-charm
RUN cd /wnd-charm && ./configure && touch * && make && make install
RUN cd /wnd-charm && /usr/bin/python2.7 setup.py build
RUN cd /wnd-charm && /usr/bin/python2.7 setup.py install
RUN apt-get install -y python-pip
RUN /usr/bin/python2.7 -c "import pip; pip.main(['install','ipykernel'])"
RUN /usr/bin/python2.7 -m ipykernel install
RUN pip install jupyter
RUN pip install jupyterlab
RUN jupyter serverextension enable --py jupyterlab --sys-prefix
RUN useradd -ms /bin/bash newuser
#add password
#ensure home folder is accessible to jupyterhub
ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py