Commit d44f3b5d by 江名洋

build(docker): 添加清华 PyPI 镜像加速

1 parent 20e6a81d
# Python 缓存
__pycache__/
*.pyc
*.pyo
*.egg-info/
# Git
.git/
.gitignore
# IDE
.vscode/
.idea/
# 临时文件
temp_uploads/
*.xlsx
# 文档
docs/
# 测试
tests/
...@@ -3,6 +3,9 @@ FROM python:3.11-slim ...@@ -3,6 +3,9 @@ FROM python:3.11-slim
# 兼容旧 CPU 的 NumPy 环境设置 # 兼容旧 CPU 的 NumPy 环境设置
ENV OPENBLAS_CORETYPE=Haswell ENV OPENBLAS_CORETYPE=Haswell
# PyPI 镜像加速(清华源)
ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
WORKDIR /app WORKDIR /app
COPY requirements.txt . COPY requirements.txt .
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!