Files
zeekay e3ff48b347 docs: SPA Dockerfile, chat widget, search index, CI workflow
- ghcr.io/hanzoai/spa multi-stage Dockerfile
- scripts/build-index.mjs: chunked content index
- src/components/Chat: in-page chat widget over the index
- src/theme/Root.tsx: mounts the chat globally
- .github/workflows/docs.yml: build + push multi-arch GHCR images
- docusaurus url → liquid.lux.network
- .gitignore: track docs/, ignore only build artefacts
2026-04-28 11:59:57 -07:00

16 lines
554 B
Docker

# syntax=docker/dockerfile:1.7
FROM node:22-alpine AS build
WORKDIR /app
RUN corepack enable
COPY package.json pnpm-lock.yaml* yarn.lock* package-lock.json* ./
RUN if [ -f pnpm-lock.yaml ]; then pnpm install --frozen-lockfile; \
elif [ -f yarn.lock ]; then yarn install --frozen-lockfile; \
else npm ci; fi
COPY . .
RUN if [ -f pnpm-lock.yaml ]; then pnpm build && pnpm index; \
elif [ -f yarn.lock ]; then yarn build && yarn index; \
else npm run build && npm run index; fi
FROM ghcr.io/hanzoai/spa
COPY --from=build /app/build /public