Add Docker support with multi-stage Vite build and nginx serving
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
16
README.md
16
README.md
@@ -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` — مدلهای دامنه با تایپ قوی
|
||||
|
||||
Reference in New Issue
Block a user