mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
2fe80ebc2d
Shell (Next.js): landing page, integrations explorer, docs viewer, AG-UI docs, feature matrix, search, demo drawer with Frontend/Backend tabs, profile pages with Live Demo / Code / Docs starter tabs. 17 integration packages with Dockerfiles, QA, tests, manifests. Build scripts for registry, demo content, starter content, search index. E2E smoke test suite (52 tests across 4 levels). Purple color scheme, independent sidebar scrolling, integration ordering by importance, category grouping, placeholder logos. Docs: 500+ MDX pages with snippet inlining, remark-gfm, rehype-highlight, AG-UI sidebar navigation, LFS images.
45 lines
1.4 KiB
Docker
45 lines
1.4 KiB
Docker
FROM node:20-slim AS builder
|
|
ARG COMMIT_SHA=unknown
|
|
ARG BRANCH=unknown
|
|
WORKDIR /app
|
|
|
|
# Copy only what the shell + scripts need
|
|
COPY showcase/scripts/package.json ./scripts/package.json
|
|
COPY showcase/shell/package.json ./shell/package.json
|
|
|
|
# Install deps for both (standalone, no workspace)
|
|
RUN cd scripts && npm install --silent && cd ../shell && npm install --silent
|
|
|
|
# Copy source
|
|
COPY showcase/shared/ ./shared/
|
|
COPY showcase/packages/ ./packages/
|
|
COPY showcase/scripts/ ./scripts/
|
|
COPY showcase/shell/ ./shell/
|
|
|
|
# Bake commit info into Next.js build
|
|
ENV NEXT_PUBLIC_COMMIT_SHA=${COMMIT_SHA}
|
|
ENV NEXT_PUBLIC_BRANCH=${BRANCH}
|
|
|
|
# Generate registry + content, then build Next.js
|
|
RUN cd scripts && node node_modules/tsx/dist/cli.mjs generate-registry.ts \
|
|
&& node node_modules/tsx/dist/cli.mjs bundle-demo-content.ts \
|
|
&& node node_modules/tsx/dist/cli.mjs generate-search-index.ts \
|
|
&& cd ../shell && npx next build
|
|
|
|
FROM node:20-slim AS runner
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
ENV PORT=10000
|
|
ENV NEXT_PUBLIC_COMMIT_SHA=${COMMIT_SHA}
|
|
ENV NEXT_PUBLIC_BRANCH=${BRANCH}
|
|
|
|
COPY --from=builder /app/shell/.next ./.next
|
|
COPY --from=builder /app/shell/node_modules ./node_modules
|
|
COPY --from=builder /app/shell/package.json ./
|
|
COPY --from=builder /app/shell/public ./public
|
|
COPY --from=builder /app/shell/src/content ./src/content
|
|
|
|
EXPOSE 10000
|
|
CMD ["npx", "next", "start", "-p", "10000"]
|
|
# Cache bust: 1775013460
|