This commit is contained in:
@@ -29,6 +29,13 @@ ENV DEBUG=false
|
||||
# =============================================================================
|
||||
# 安装依赖
|
||||
# =============================================================================
|
||||
# 复制本地模型文件到镜像
|
||||
COPY models/*.whl /tmp/models/
|
||||
|
||||
# 安装
|
||||
RUN pip install --no-cache-dir /tmp/models/*.whl && \
|
||||
rm -rf /tmp/models
|
||||
|
||||
# 设置 pip 国内镜像源
|
||||
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
|
||||
Reference in New Issue
Block a user