代码拉取完成,页面将自动刷新
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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。