Files
socaichat/langgraph/Dockerfile
T
gongzhiyongandClaude Opus 4.6 0d97298b6a
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 13s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 51s
feat: web-read-progress Gen-UI card + production mode + security fixes
- Add web-read-progress Gen-UI card for real-time web reading feedback
- Searcher tool-executor pushes loading→complete cards during web_read
- ToolCallStatus supports expanding during loading state
- Switch from langgraphjs dev to production mode (server.ts)
- Add Hono middleware to strip sensitive request headers
- Bundle splitting via Vite manualChunks (1.85MB → 8 chunks)
- SPA fallback via staticwebapp.config.json
- Agent model configs updated (sonnet 1M → standard sonnet)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 22:18:05 +08:00

26 lines
497 B
Docker

FROM node:20-slim
WORKDIR /app
# Install pnpm
RUN npm install -g pnpm@10
# Copy package files first for layer caching
COPY package.json pnpm-lock.yaml ./
# Install dependencies
RUN pnpm install --frozen-lockfile
# Copy source code
COPY . .
# LangGraph dev prerequisites
RUN touch .env && mkdir -p .langgraph_api
# Expose port 8080 for Azure auto-detection
EXPOSE 8080
# Start LangGraph.js production server on port 8080
ENV PORT=8080
CMD ["./node_modules/.bin/tsx", "src/agent/server.ts"]