-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (38 loc) · 2.38 KB
/
Dockerfile
File metadata and controls
50 lines (38 loc) · 2.38 KB
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
FROM jupyterhub/jupyterhub:1.4
RUN apt-get update && apt-get install -y vim git wget build-essential
COPY pip.conf /root/.pip/pip.conf
RUN pip3 install jupyterhub-nativeauthenticator notebook jupyterlab
RUN cd /usr/local/lib/ && \
git clone https://github.com/XaverKlemenschits/jupyter-c-kernel.git && \
cd jupyter-c-kernel && \
pip3 install -e . && \
install_c_kernel --sys-prefix
#RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
## RUN wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
# chmod 755 Miniconda3-latest-Linux-x86_64.sh && ./Miniconda3-latest-Linux-x86_64.sh -bp /opt/conda && \
# /opt/conda/bin/conda init
#RUN \
# # /opt/conda/bin/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ && \
# # /opt/conda/bin/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ && \
# # /opt/conda/bin/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ && \
# /opt/conda/bin/conda config --set show_channel_urls yes && \
# /opt/conda/bin/conda install xeus-cling -c conda-forge && \
# jupyter kernelspec install /opt/conda/share/jupyter/kernels/xcpp17 --prefix /usr/local
RUN ln -s /public /etc/skel/public
RUN npm install -g npm@latest && npm install -g n && n stable
RUN pip3 install --timeout 1000 jupyterlab-git
RUN jupyter labextension install @ryantam626/jupyterlab_code_formatter && \
pip3 install --timeout 1000 black isort yapf autopep8 jupyterlab_code_formatter && \
jupyter serverextension enable --system --py jupyterlab_code_formatter
RUN apt-get install -y python3-dev && pip3 install nbresuse && \
jupyter labextension install jupyterlab-topbar-extension jupyterlab-system-monitor
RUN jupyter labextension install jupyterlab-drawio && \
jupyter serverextension enable --system jupyterlab-drawio
RUN pip3 install nbdime && \
jupyter labextension install nbdime-jupyterlab && \
jupyter serverextension enable --system --py nbdime
RUN pip3 install jupyterlab-lsp
RUN pip3 install python-lsp-server[all] && \
apt-get install -y clangd-11 && \
npm install -g bash-language-server
CMD ["jupyterhub", "-f", "config.py"]