absl-py==0.15.0 anyio==4.4.0 astor==0.8.1 astunparse==1.6.3 certifi==2024.7.4 clang==5.0 cycler==0.12.1 decorator==5.1.1 exceptiongroup==1.2.2 filelock==3.15.4 flatbuffers==1.12 fonttools==4.53.1 fsspec==2024.6.1 gast==0.4.0 google-pasta==0.2.0 grpcio==1.65.4 h11==0.14.0 h5py==3.1.0 httpcore==1.0.5 httpx==0.27.0 idna==3.7 importlib_metadata==8.2.0 intel-openmp==2021.4.0 Jinja2==3.1.4 keras==2.15.0 Keras-Preprocessing==1.1.2 kiwisolver==1.4.5 Markdown==3.6 MarkupSafe==2.1.5 matplotlib==3.5.0 mkl==2021.4.0 mpmath==1.3.0 networkx==3.2.1 numpy==1.19.5 opencv-python==4.5.4.58 opt-einsum==3.3.0 packaging==24.1 paddlepaddle==2.6.1 pillow==10.4.0 protobuf==3.20.2 pyparsing==3.1.2 python-dateutil==2.9.0.post0 setuptools-scm==8.1.0 six==1.15.0 sniffio==1.3.1 sympy==1.13.1 tbb==2021.13.0 tensorboard==2.17.0 tensorboard-data-server==0.7.2 tensorflow==2.6.0 tensorflow-estimator==2.15.0 termcolor==1.1.0 tomli==2.0.1 torch==2.3.0 typing-extensions==3.7.4.3 Werkzeug==3.0.3 wrapt==1.12.1 zipp==3.19.2

使用官方的Jupyter镜像作为基础镜像

FROM jupyter/base-notebook:latest

设置工作目录

WORKDIR /home/jovyan/work

复制requirements.txt到工作目录

COPY requirements.txt .

设置pip使用清华源

RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

安装requirements.txt中的依赖

RUN pip install --no-cache-dir -r requirements.txt

暴露Jupyter Notebook默认端口

EXPOSE 8888

启动Jupyter Notebook

CMD ["start-notebook.sh"] docker build -t my-jupyter-image . docker run -p 8888:8888 -v $(pwd):/home/jovyan/work my-jupyter-image

版权声明:如无特殊说明,文章均为本站原创,转载请注明出处

本文链接:http://example.com/subject/article/60/

许可协议:署名-非商业性使用 4.0 国际许可协议