Merge remote-tracking branch 'github_public/main'

This commit is contained in:
wizardchen
2025-11-20 15:49:43 +08:00
51 changed files with 3293 additions and 1922 deletions
+6 -4
View File
@@ -80,10 +80,11 @@ RUN pip install uv --break-system-packages && \
python -m uv sync --locked --no-dev
# 复制源代码和生成脚本
COPY docreader .
COPY docreader docreader
# 生成 protobuf 代码
RUN chmod +x scripts/generate_proto.sh && bash scripts/generate_proto.sh
RUN chmod +x docreader/scripts/generate_proto.sh && \
bash docreader/scripts/generate_proto.sh
# 确保模型目录存在
RUN ls -la /root/.paddleocr/whl/
@@ -150,10 +151,11 @@ RUN python -m playwright install-deps webkit
# COPY docreader/scripts/download_deps.py download_deps.py
# RUN python -m download_deps
COPY --from=builder /app/ ./
COPY docreader/pyproject.toml docreader/uv.lock ./
COPY --from=builder /app/docreader docreader
# 暴露 gRPC 端口
EXPOSE 50051
# 直接运行 Python 服务(日志输出到 stdout/stderr)
CMD ["uv", "run", "main.py"]
CMD ["uv", "run", "-m", "docreader.main"]
-32
View File
@@ -1,32 +0,0 @@
version: "3.8"
services:
minio:
image: minio/minio:latest
read_only: true
tmpfs:
- /tmp
container_name: WeKnora-minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
environment:
- MINIO_ROOT_USER=${MINIO_ACCESS_KEY_ID}
- MINIO_ROOT_PASSWORD=${MINIO_SECRET_ACCESS_KEY}
command: server --console-address ":9001" /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- WeKnora-network
volumes:
minio-data:
networks:
WeKnora-network:
external: true