🎈 perf: 优化开发体验 (#70)

添加内置模型下载,yarn
This commit is contained in:
kalicyh
2025-02-19 01:01:48 +08:00
committed by GitHub
parent 174ab7fdb7
commit 44c7060306
3 changed files with 183 additions and 1 deletions
+6
View File
@@ -36,6 +36,12 @@ RUN poetry install --no-root
# 从构建阶段复制虚拟环境和前端构建产物
COPY --from=frontend-builder /app/ZhiKongTaiWeb/dist /app/manager/static/webui
# 下载模型文件(断点续传 + 自动重试)
RUN mkdir -p /app/model/SenseVoiceSmall && \
wget -O /app/model/SenseVoiceSmall/model.pt -c --tries=5 --waitretry=5 \
https://modelscope.cn/models/iic/SenseVoiceSmall/resolve/master/model.pt
# 设置虚拟环境路径
ENV PATH="/app/.venv/bin:$PATH"