Fix Docker build for restricted Alpine CDN access

Drop apk openssl (node alpine already has it) and use npmmirror by default so Iranian servers can build without Alpine TLS failures.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 20:37:59 +03:30
co-authored by Cursor
parent 9f0422c1db
commit 9a9566dd50
2 changed files with 28 additions and 15 deletions
+9
View File
@@ -37,6 +37,15 @@ RUN_SEED=true docker compose up -d --build
docker compose up -d --build
```
اگر بیلد به‌خاطر رجیستری npm یا Alpine خطا داد (رایج روی سرورهای ایران):
```bash
# پیش‌فرض Dockerfile از میرور npmmirror استفاده می‌کند.
# در صورت نیاز:
docker compose build --build-arg NPM_REGISTRY=https://registry.npmmirror.com
RUN_SEED=true docker compose up -d
```
- API روی `127.0.0.1:3000` بالا می‌آید
- مایگریشن موقع استارت کانتینر اجرا می‌شود
- LiteSpeed را Reverse Proxy کنید به `http://127.0.0.1:3000`