mirror of
https://github.com/luxfi/liquid.git
synced 2026-10-30 16:21:07 +00:00
- 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
16 lines
554 B
Docker
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
|