feat: 启动时自动下载缺失的模型文件
Build and Deploy / deploy (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled

This commit is contained in:
2026-07-16 19:51:13 +00:00
parent 9776cb35ef
commit a3750ffce4
2 changed files with 68 additions and 6 deletions
+3 -4
View File
@@ -33,13 +33,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /app
# 复制二进制文件前端和模型
# 复制二进制文件前端
COPY --from=builder /app/anticaptcha .
COPY --from=builder /app/web/dist ./web/dist
COPY --from=builder /app/models ./models
# 创建数据目录
RUN mkdir -p /app/data
# 创建数据和模型目录(模型启动时自动下载)
RUN mkdir -p /app/data /app/models
ENV GIN_MODE=release
ENV TZ=Asia/Shanghai