Fix build hang: use Arvan mirror for base image and pip
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user