1 Star 0 Fork 0

tangxueliang/jupyterlab

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
FROM mambaorg/micromamba:0.14.0 as build
# Install basic tools
RUN micromamba install -qy -c conda-forge python nodejs yarn \
&& useradd --shell /bin/bash jovyan \
&& chown jovyan $HOME
# Install npm packages - faster build thanks to caching
## package_json.tar.gz contains all package.json files using
## `tar cvf package_json.tar.gz package.json packages/*/package.package_json`
ADD ./package_json.tar.gz /tmp/jupyterlab-dev
COPY yarn.lock /tmp/jupyterlab-dev
RUN cd /tmp/jupyterlab-dev \
&& yarn install --ignore-scripts
# Install python dependencies - faster build thanks to caching
COPY setup.cfg /tmp
RUN list_package=$(python -c "from configparser import ConfigParser; c = ConfigParser(); c.read('/tmp/setup.cfg'); print(' '.join(c['options']['install_requires'].strip().splitlines()))") \
&& micromamba install -qy -c conda-forge $list_package \
&& micromamba clean -ay \
&& rm /tmp/setup.cfg
# Install JupyterLab
COPY --chown=jovyan ./builder/ /tmp/jupyterlab-dev/builder/
COPY --chown=jovyan ./buildutils/ /tmp/jupyterlab-dev/buildutils/
COPY --chown=jovyan ./dev_mode/ /tmp/jupyterlab-dev/dev_mode/
COPY --chown=jovyan ./jupyterlab/ /tmp/jupyterlab-dev/jupyterlab/
COPY --chown=jovyan ./packages/ /tmp/jupyterlab-dev/packages/
COPY --chown=jovyan ./scripts/ /tmp/jupyterlab-dev/scripts/
COPY --chown=jovyan ./*.* ./LICENSE /tmp/jupyterlab-dev/
RUN pushd /tmp/jupyterlab-dev \
&& pip install -e .[ui-tests]
USER jovyan
WORKDIR ${HOME}
ENV PATH="/home/micromamba/.local/bin:$PATH"
RUN mkdir -p /home/micromamba/jlab_root
COPY ./docker/jupyter_server_config.json /etc/jupyter/
EXPOSE 8888
ENTRYPOINT ["jupyter", "lab"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tangxlc/jupyterlab.git
git@gitee.com:tangxlc/jupyterlab.git
tangxlc
jupyterlab
jupyterlab
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385