-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (26 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
FROM jupyter/tensorflow-notebook
USER root
RUN apt update -y && apt upgrade -y && \
apt install -y \
vim \
build-essential
USER ${NB_USER}
RUN conda update conda \
&& conda install -y \
pystan \
flake8 \
lightgbm \
pytest \
&& conda update --all -y
RUN pip install japanize-matplotlib \
&& pip install scipy==1.2 --upgrade
RUN jupyter labextension install jupyterlab_vim \
&& mkdir -p /home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/apputils-extension \
&& mkdir -p /home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/codemirror-extension \
&& echo '{"theme":"JupyterLab Dark"}' > /home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings \
&& echo '{"keyMap":"vim"}' > /home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/codemirror-extension/commands.jupyterlab-settings
RUN mkdir ./setting
COPY setting ./setting
RUN chmod +x ~/setting \
&& bash ~/setting/adapt.sh
CMD ["jupyter-lab", "--no-browser","--port=8888","--ip=0.0.0.0","--allow-root"]