Backend: - Enterprise Agent refactored from single-round to ReAct multi-turn loop - New agent.ts (LLM decision node) + tool-executor.ts (tool execution + Gen-UI) - tool-defs.ts extracted for shared tool schemas - MAX_ITERATIONS=6 safeguard against infinite loops Frontend: - MessageBubble: Markdown + code highlighting + LaTeX + tables - ThemeToggle: light/dark/system theme cycling - chart-result Gen-UI card: recharts bar/line/pie/area charts Infrastructure: - Docker Compose (lightweight): only LangGraph + Frontend, Azure cloud for PG/Redis/Blob - Dockerfiles for dev (hot reload) and prod - Makefile with dev/prod/down/logs commands - Updated CLAUDE.md and agent definitions for LangGraph.js architecture Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
633 B
Docker
31 lines
633 B
Docker
# Frontend - Production (multi-stage: vite build + nginx)
|
|
FROM node:20-slim AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm install -g pnpm@10
|
|
|
|
COPY package.json pnpm-lock.yaml .npmrc ./
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
# Build-time variable: where the frontend should call the LangGraph API
|
|
ARG VITE_LANGGRAPH_URL=http://localhost:2024
|
|
ENV VITE_LANGGRAPH_URL=${VITE_LANGGRAPH_URL}
|
|
|
|
RUN pnpm build
|
|
|
|
# ---- Serve with nginx ----
|
|
FROM nginx:alpine
|
|
|
|
RUN apk add --no-cache curl
|
|
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.frontend.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|