Files
docker-jupyterhub/Dockerfile
2023-12-26 00:00:07 +08:00

16 lines
1013 B
Docker

FROM debian:bullseye
RUN <<EOT
#!/bin/bash
apt-get update
apt-get install -y python3 python3-pip gcc g++ build-essential nodejs npm
npm install -g configurable-http-proxy
python3 -m pip install jupyterhub jupyterlab notebook jupyter-rsession-proxy ipykernel jupyterlab-language-pack-zh-CN jupyterlab-git jupyterlab-system-monitor jupyter_nbextensions_configurator jupyter_contrib_nbextensions jupyterlab-unfold jupyterlab_widgets jupyterlab-drawio jupyterlab-spreadsheet-editor jupyterlab-cell-flash jedi-language-server jupyterlab_code_formatter jupyterlab-spellchecker jupyterlab_vim \
nbresuse ipydrawio jedi ipympl black isort theme-darcula ipywidgets tensorboard jupyterlab_latex jupyter_bokeh autopep8 xeus-python jupyterlab-lsp python-lsp-server nglview dockerspawner lckr_jupyterlab_variableinspector -i https://mirrors.aliyun.com/pypi/simple
mkdir -p ~/.jupyterhub
EOT
COPY jupyterhub_config.py /root/.jupyterhub
EXPOSE 9000
ENTRYPOINT [ "jupyterhub", "-f", "/root/.jupyterhub/jupyterhub_config.py" ]