Add Docker support with multi-stage Vite build and nginx serving

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Shayan Azadi
2026-07-01 00:32:25 +03:30
parent ce6c110e06
commit d7252f1d21
5 changed files with 118 additions and 0 deletions

View File

@@ -65,6 +65,22 @@ npm run preview # پیش‌نمایش بیلد روی پورت 5176
npm run lint # بررسی نوع‌ها (type-check)
```
## Docker
```bash
docker compose up -d --build
```
The container serves the production build on **http://localhost:3006**.
Build-time API URLs (FunZone backend + accounting service):
```bash
VITE_API_BASE_URL=http://localhost:8001/api \
VITE_ACCOUNTING_BASE_URL=http://localhost:8010/api \
docker compose up -d --build
```
## معماری
- `src/types` — مدل‌های دامنه با تایپ قوی