mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-07-27 04:31:57 +00:00
Our own docs branded a Hanzo product as an 'AI Gateway' (/docs/llm title+H1, skills index, and ~90 files across docs/bot-docs/cloud). Renamed to 'AI API' to match hanzo.ai/app/bot. Third-party product names are facts about someone else's product and are NOT rewritten: 'Vercel AI Gateway' restored verbatim (same carve-out as LiteLLM); HanzoBot's own 'Gateway' transport untouched. Pins ghcr.io/hanzoai/static 0.4.1 -> v0.5.1: only v0.5.1 carries 79ac4f9 (serve directory index in place), so docs was the last host 301ing /docs/x/ -> /docs/x/index.html, which poisons Next's router into prefetching .../index.html/__next._tree.txt — 8 failed requests per page load.
30 lines
1.3 KiB
Docker
30 lines
1.3 KiB
Docker
# hanzo-docs/docs — the ONE Fumadocs build, exported static and served by
|
|
# hanzoai/static (the house static server; no nginx anywhere in the stack).
|
|
#
|
|
# Built by the platform-native fabric (POST /v1/runner → buildkit Job with this
|
|
# repo as the git context) and deployed as the docs-landing Service CR at
|
|
# docs.hanzo.ai. Mirrors the pnpm recipe the retired GitHub workflow ran:
|
|
# NEXT_EXPORT=1 (output:'export'), HANZO_DOCS_SYNC=0 (committed project-docs +
|
|
# openapi snapshots — the in-cluster re-sync is incomplete by design).
|
|
# build:pre runs `bun ./scripts/*.ts` (gen-services-nav, pre-build). node:alpine has
|
|
# no bun, so the build stage produced an empty export → an empty /public → 404s.
|
|
# Bring the musl bun binary in from the official image.
|
|
FROM oven/bun:1-alpine AS bun
|
|
|
|
FROM public.ecr.aws/docker/library/node:22-alpine AS build
|
|
COPY --from=bun /usr/local/bin/bun /usr/local/bin/bun
|
|
RUN apk add --no-cache git libstdc++ libgcc && corepack enable && corepack prepare pnpm@11.1.0 --activate
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN pnpm install --frozen-lockfile
|
|
ENV NEXT_EXPORT=1 \
|
|
HANZO_DOCS_SYNC=0 \
|
|
NEXT_TELEMETRY_DISABLED=1 \
|
|
NODE_OPTIONS=--max-old-space-size=24576
|
|
RUN pnpm build --filter=docs
|
|
|
|
FROM ghcr.io/hanzoai/static:v0.5.1
|
|
COPY --from=build /src/apps/docs/out /public
|
|
EXPOSE 3000
|
|
ENTRYPOINT ["/static", "-port", "3000", "-root", "/public"]
|