Commit Graph
20 Commits
Author SHA1 Message Date
yml 1a9c832c7a 合并远端前端修复 2026-05-21 18:09:39 +08:00
yml 0931975ed4 后端移除内嵌OCR子服务 2026-05-21 17:46:12 +08:00
yml 1476522ab5 后端建立 TypeScript 构建链路 2026-05-21 13:36:38 +08:00
yml2213 e3518c791f chore: 合并前端修复并调整 Docker 镜像源 2026-05-21 12:26:45 +08:00
yml b7de22d665 feat: extract OCR worker into separate service
- Remove Python/OCR steps from backend.Dockerfile (builder + runtime)
- Remove Python/OCR steps from backend-dev.Dockerfile
- Add OCR_BASE_URL env var to both Dockerfiles (http://ocr-worker:8100)
- Add ocr-worker service to docker-compose.yml with healthcheck
- Add ocr-worker service to docker-compose.dev.yml with healthcheck + port
- Update backend depends_on in both compose files to include ocr-worker
- Replace OCR_PROJECT_ROOT with OCR_BASE_URL in compose env vars
- Remove pip install line from start-dev-container.sh
2026-05-19 23:06:15 +08:00
yml f87238b6c0 fix: use Debian official HTTP mirrors in runtime stage (Tencent mirrors redirect to HTTPS which fails without ca-certificates on slim) 2026-05-19 22:39:53 +08:00
yml 82932758b5 fix: correct Python venv path in production Dockerfile to match OCR worker lookup logic (.venv inside ocr-worker dir) 2026-05-19 22:35:02 +08:00
yml 925e2c0eaa refactor: multi-stage production Dockerfile for backend
- Split into builder (node:22-bookworm) and runtime (node:22-bookworm-slim)
- Remove VNC/X11 packages (xauth, x11vnc, novnc, websockify) from production
- Install only minimal Chromium runtime libs in slim stage
- Use python3 -m venv instead of --break-system-packages
- npm prune --omit=dev to exclude devDependencies from runtime
- Run as non-root user appuser (uid=1001)
- Use HTTP apt mirrors (OrbStack BuildKit TLS workaround)
- Copy only runtime-needed dirs: src/, config/, node_modules, venv, subservices
- Expected image size: ~800MB-1.2GB (down from ~3.5GB)
2026-05-19 22:31:05 +08:00
yml f157fbc87a 优化docker相关 2026-05-19 21:41:43 +08:00
yml2213 fa36be6539 后端可视化调试 2026-04-14 00:21:32 +08:00
yml a2b09c89e8 开始多平台 多店铺整改 2026-04-08 22:21:11 +08:00
yml d5b10e3f7f uv下载加速-2 2026-04-08 18:11:44 +08:00
yml 238962d513 uv下载加速 2026-04-08 18:01:11 +08:00
yml 5787925179 Playwright 版本降到稳定旧版 2026-04-08 17:43:26 +08:00
yml c09368d2c2 Playwright固定官方镜像 2026-04-08 17:25:55 +08:00
yml ea6440c844 国内 PyPI 安装 uv 更稳-2 2026-04-08 17:15:12 +08:00
yml 79c0fcb221 国内 PyPI 安装 uv 更稳 2026-04-08 17:13:52 +08:00
yml 92970780a4 优化下载速度, 配置镜像站-2 2026-04-08 17:09:31 +08:00
yml 1c3e306e36 优化下载速度, 配置镜像站 2026-04-08 17:05:25 +08:00
yml 313c036845 init 2026-04-08 16:30:42 +08:00