-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (40 loc) · 1.73 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
FROM karrlab/wc_env_dependencies
# install and configure software and examples
ARG python_version=3.7
RUN git clone https://github.com/KarrLab/wc_sandbox.git \
&& cd /root/wc_sandbox \
&& pip${python_version} install -U pip \
&& pip${python_version} install -U git+https://github.com/KarrLab/pkg_utils.git#egg=pkg_utils \
&& pip${python_version} install -r .circleci/requirements.txt \
&& pip${python_version} install -e . \
\
&& jupyter contrib nbextension install \
&& jupyter nbextensions_configurator disable \
&& jupyter nbextension enable varInspector/main \
&& jupyter nbextension enable toc2/main \
&& jupyter nbextension enable collapsible_headings/main \
&& jupyter nbextension enable equation-numbering/main \
&& jupyter nbextension enable codefolding/main \
&& jupyter nbextension enable scratchpad/main \
&& jupyter nbextension enable tree-filter/index \
&& jupyter nbextension enable printview/main \
&& jupyter nbextension disable contrib_nbextensions_help_item/main \
\
&& cp -R wc_sandbox/assets/.jupyter/* ~/.jupyter \
&& cp wc_sandbox/assets/favicon.ico /usr/local/lib/python${python_version}/site-packages/notebook/static/base/images/favicon.ico \
\
&& wc-sandbox install-packages \
&& wc-sandbox get-notebooks
# setup entry point
CMD jupyter notebook \
--allow-root \
--ip=0.0.0.0 \
--port $PORT \
--no-browser \
--notebook-dir=/root/.wc/wc_sandbox/notebooks \
--NotebookApp.password= \
--NotebookApp.password_required=False \
--NotebookApp.allow_password_change=False \
--NotebookApp.token=
# copy licenses
COPY wc_sandbox/assets/licenses/chemaxon.cxl /root/.chemaxon/license.cxl