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:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user