forked from vemonet/Jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
83 lines (68 loc) · 1.97 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
FROM python:3.11
# Install nicer Bash terminal
RUN git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it && \
bash ~/.bash_it/install.sh --silent
# Install NodeJS 18
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get upgrade -y && \
apt-get install -y nodejs texlive-latex-extra texlive-xetex && \
rm -rf /var/lib/apt/lists/*
# install Rust (needed for y-py) - see https://rustup.rs/
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Add .cargo/bin to PATH
ENV PATH="/root/.cargo/bin:${PATH}"
# Check cargo is visible
RUN cargo --help
# Install packages and extensions for JupyterLab
RUN pip install --upgrade pip && \
pip install --upgrade \
jupyterlab>=3.0.0 \
ipywidgets \
jupyter-lsp \
python-language-server \
jupyterlab-git \
jupyter_bokeh \
jupyterlab_widgets \
jupyterlab_latex \
jupyterlab-drawio \
jupyterlab-lsp \
'python-lsp-server[all]' \
jupyterlab-git \
jupyterlab-spreadsheet-editor \
jupyter-dash \
lckr-jupyterlab-variableinspector
# from plotly documentation: install jupyter-dash
# install python library
COPY requirements.txt .
RUN pip3 install --upgrade pip && \
pip3 install --no-cache-dir -r requirements.txt \
&& rm -rf ~/.cache/pip && \
apt-get update && \
apt-get install -y pandoc
RUN jupyter labextension install jupyterlab-filesystem-access && \
jupyter lab build
COPY bin/entrypoint.sh /usr/local/bin/
COPY config/jupyter_notebook_config.py /root/.jupyter/
# COPY config/ /root/.jupyter/
EXPOSE 8888
VOLUME /notebooks
WORKDIR /notebooks
ENTRYPOINT ["entrypoint.sh"]
## Old pip install for data science:
# jedi==0.15.2 \
# # jupyterlab-lsp does not support 0.17
# jupyterlab_latex \
# plotly \
# bokeh \
# numpy \
# scipy \
# numexpr \
# patsy \
# scikit-learn \
# scikit-image \
# matplotlib \
# ipython \
# pandas \
# sympy \
# seaborn \
# nose \