feat: update Dockerfile to set custom pip index URL and install Jupyter Lab with libraries

This commit is contained in:
fada
2025-06-16 15:48:07 +08:00
parent aaf44e3447
commit f52c9ca8e3

View File

@ -2,7 +2,8 @@
FROM pytorch/pytorch:latest FROM pytorch/pytorch:latest
# 安装 Jupyter Lab 和常用库 # 安装 Jupyter Lab 和常用库
RUN pip install --upgrade pip && \ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install --upgrade pip && \
pip install jupyterlab matplotlib pandas seaborn pip install jupyterlab matplotlib pandas seaborn
# 设置默认工作目录 # 设置默认工作目录