Fix Docker build without VPN proxy dependency

Make build proxy optional and use Arvan mirrors for apt/pip by default. Fixes 503 errors when xray proxy on 172.17.0.1:1081 is unavailable during Dokploy deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-10 20:26:09 +03:30
parent 63d0699cdd
commit 384680cd82
3 changed files with 35 additions and 20 deletions
+4
View File
@@ -16,5 +16,9 @@ TEST_ROLLBACK_MINUTES=2
AUTO_TEST_INTERVAL_MINUTES=30
FLASK_ENV=production
# ─── Build (اختیاری — فقط اگر xray روی host فعال است) ───
# BUILD_HTTP_PROXY=http://172.17.0.1:1081
# BUILD_HTTPS_PROXY=http://172.17.0.1:1081
# ─── CLI روی host ───
MIRROR_CONTAINER_NAME=mirror-manager