-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
48 lines (37 loc) · 1.48 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 ubuntu:rolling
USER root
MAINTAINER Kadupitiya kadupitige <[email protected]>
# Install some Debian package
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-setuptools \
python3-wheel \
python3-pip \
less \
nano \
sudo \
git \
npm \
&& rm -rf /var/lib/apt/lists/*
# install Jupyter via pip
RUN pip3 install notebook
# install ipywidgets
RUN pip3 install ipywidgets && \
jupyter nbextension enable --sys-prefix --py widgetsnbextension
# install Appmode
RUN pip3 install appmode && \
jupyter nbextension enable --py --sys-prefix appmode && \
jupyter serverextension enable --py --sys-prefix appmode
# Possible Customizations
RUN mkdir -p ~/.jupyter/custom/ && \
echo "\$('#appmode-leave').hide();" >> ~/.jupyter/custom/custom.js && \
echo "\$('#appmode-busy').hide();" >> ~/.jupyter/custom/custom.js && \
echo "\$('#appmode-loader').append('<h2>Loading...</h2>');" >> ~/.jupyter/custom/custom.js
# Copy required files
COPY . /usr/src/app
WORKDIR /usr/src/app
#RUN ls -la
# install python libs
RUN pip3 install -r requirements.txt
# Launch Notebook server
EXPOSE 8181
CMD ["jupyter-notebook", "--ip=0.0.0.0", "--port=8181", "--NotebookApp.base_url=parasweep", "--allow-root", "--no-browser", "--NotebookApp.token=''", "para_sweep_GUI.ipynb"]