mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
Fix Containerfiles: - Move tsconfig.json to workspace config layer for early availability - Add missing workspace package.json entries for pnpm lockfile resolution Docker Compose: - Move Grafana from port 3000 to 3030 (avoid conflicts) - Add agent, librarian, and flow-manager app services - Add librarian-data volume for document persistence Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
29 lines
1.3 KiB
Docker
29 lines
1.3 KiB
Docker
# TrustGraph Workbench — Vite SPA served by nginx.
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Stage 1: Build
|
|
# ---------------------------------------------------------------------------
|
|
FROM node:22-slim AS builder
|
|
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
|
|
WORKDIR /app
|
|
|
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json tsconfig.base.json tsconfig.json ./
|
|
COPY packages/base/package.json packages/base/tsconfig.json packages/base/
|
|
COPY packages/client/package.json packages/client/tsconfig.json packages/client/
|
|
COPY packages/flow/package.json packages/flow/tsconfig.json packages/flow/
|
|
COPY packages/cli/package.json packages/cli/tsconfig.json packages/cli/
|
|
COPY packages/mcp/package.json packages/mcp/tsconfig.json packages/mcp/
|
|
COPY packages/workbench/package.json packages/workbench/tsconfig.json packages/workbench/vite.config.ts packages/workbench/
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
COPY packages/ packages/
|
|
RUN pnpm build --filter=@trustgraph/workbench
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Stage 2: Serve
|
|
# ---------------------------------------------------------------------------
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/packages/workbench/dist /usr/share/nginx/html
|
|
COPY packages/workbench/nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|