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>
16 lines
384 B
Docker
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"]
|