build: 改用 alpine:3.20 + apk 源,规避 python 官方镜像在国内拉不动

This commit is contained in:
houhuan committed 2026-11-16 12:51:30 +08:00
1 parent 9ff4380a31
commit bc3b95f800
2 files changed
+28 -17

No files matched your search

+3
View File
@@ -62,6 +62,9 @@ docker compose ps # STATUS 应为 healthy
curl -s localhost:52100/healthz | python3 -m json.tool
```
> 镜像基于 `alpine:3.20` + apk(阿里云源),构建约 10 秒。
> 官方 `python:3.12-slim` 在国内常卡在基础层下载,Dockerfile 末尾保留了切换回去的注释。
首次部署后必须在本地跑一次 `login.bat`(或 `fengxiang_scraper.py --upload`)把 Cookie 推上去,
否则监控会一直停在「等待 Cookie」状态。