TorbatYar/frontend/Dockerfile.dev
Mortezakoohjani 800b0ba2c5 Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing.
Wire production domain, CORS for tenant subdomains, celery volume mounts, and nginx reverse proxy configs for apex, API, identity, auth, and wildcard tenants.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-21 21:43:33 +03:30

16 lines
384 B
Docker

# Frontend — Development image (hot-reload)
FROM node:20-alpine
WORKDIR /app
# وابستگی‌ها ابتدا کپی می‌شوند تا لایه cache بهتر کار کند.
COPY package.json ./
RUN npm install
COPY . .
EXPOSE 3000
# در Docker باید روی 0.0.0.0 گوش دهد تا از host قابل دسترسی باشد.
CMD ["npm", "run", "dev"]