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
|
||||
|
||||
|
||||
BIN
docker/models/en_core_web_sm-3.8.0-py3-none-any.whl
Normal file
BIN
docker/models/en_core_web_sm-3.8.0-py3-none-any.whl
Normal file
Binary file not shown.
BIN
docker/models/zh_core_web_sm-3.8.0-py3-none-any.whl
Normal file
BIN
docker/models/zh_core_web_sm-3.8.0-py3-none-any.whl
Normal file
Binary file not shown.
Reference in New Issue
Block a user