Self-hosted, Docker-based agentic troubleshooting platform: FastAPI backend + LangGraph agent, Next.js UI, tiered LLM routing (local Ollama -> Gemini -> DeepSeek -> OpenRouter), MCP server manager, encrypted device credentials, RBAC, audit log, project-memory + Obsidian integrations, and editable troubleshooting decision rules tuned for the GeneseasX vessel stack. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
578 B
Docker
23 lines
578 B
Docker
FROM node:20-alpine AS deps
|
|
WORKDIR /app
|
|
COPY package.json ./
|
|
RUN npm install
|
|
|
|
FROM node:20-alpine AS builder
|
|
WORKDIR /app
|
|
ARG NEXT_PUBLIC_API_BASE_URL
|
|
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:20-alpine AS runner
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
COPY --from=builder /app/.next ./.next
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
COPY --from=builder /app/package.json ./package.json
|
|
COPY --from=builder /app/public ./public
|
|
EXPOSE 3000
|
|
CMD ["npm", "run", "start"]
|