FROM node:20-alpine

WORKDIR /app

# Install dependencies placeholder
COPY apps/dashboard/package*.json ./
RUN npm install

# Copy source
COPY apps/dashboard/ .

# Build for production
RUN npm run build

# We use a simple static server or just serve from Vite for demo
# For production, we can use nginx, but let's stick to dev/preview mode for now
# per user request to see "what happens"
CMD ["npm", "run", "preview", "--", "--host", "--port", "5173"]
