Fix build hang: use Arvan mirror for base image and pip

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-05 22:19:41 +03:30
parent 5519a9d93b
commit 8ab80c00e9
4 changed files with 54 additions and 9 deletions
+21
View File
@@ -210,6 +210,27 @@ git push origin main
## عیب‌یابی
### ۰. Build گیر می‌کند روی `load metadata for python`
علت: Docker Hub از ایران در دسترس نیست.
**راه‌حل (در Dockerfile اعمال شده):**
- Base image از `docker.arvancloud.ir/library/python:3.12-slim-bookworm`
- pip از `mirror.arvancloud.ir`
**قبل از deploy دستی روی سرور (اختیاری):**
```bash
docker pull docker.arvancloud.ir/library/python:3.12-slim-bookworm
```
**اگر باز هم گیر کرد** — VPN را روشن کنید و دوباره Deploy بزنید.
**تست build دستی:**
```bash
cd /etc/dokploy/compose/vpn-mirror-sazg0b/code
docker compose -p vpn-mirror-sazg0b build --progress=plain 2>&1 | tee /tmp/mirror-build.log
```
### ۱. 502 / 504 از Traefik
```bash