mirror of
https://github.com/hanzoai/hanzo.network.git
synced 2026-09-25 02:14:24 +00:00
.github/workflows now holds sync.yml alone, carrying refs to git.hanzo.ai; every build runs natively there from .hanzo/workflows. .hanzo/workflows/deploy.yml publishes ghcr.io/hanzoai/hanzo-network:<sha> and does not deploy — the operator CR in hanzoai/universe names which tag is live. The GitHub Pages workflow it replaces is dead, not moved: Pages did not survive the hanzoai -> hanzo-apps transfer, so the repo's pages API is 404 and every run since 2026-03-04 ends "Failed to create deployment (status: 404) … Ensure GitHub Pages has been enabled". Relocating a guaranteed 404 to the forge buys nothing. public/CNAME goes with it: that file is a Pages control file, and neither hanzoai/static nor Cloudflare reads it. The live host is a Cloudflare Pages project built through CF's Git integration, outside every workflow file here — nothing in this commit changes what serves today. The Dockerfile ends FROM ghcr.io/hanzoai/static:v0.5.1 with dist at /public and runs it with -spa: 98 BrowserRouter routes plus the app's own path="*" NotFound need the fallback, or every deep link 404s. Measured against the image: -spa returns 200 for /account/billing, and without it a missing path 404s. Co-authored-by: Hanzo Dev <[email protected]>
19 lines
745 B
Docker
19 lines
745 B
Docker
# hanzo.network — a Vite SPA served by hanzoai/static, the house static server (a
|
|
# Go binary on scratch). No GitHub Pages, no Cloudflare Pages: the site is an
|
|
# image the operator runs behind hanzoai/ingress like every other Hanzo surface.
|
|
|
|
FROM node:22 AS build
|
|
WORKDIR /src
|
|
RUN npm i -g pnpm@9
|
|
COPY package.json pnpm-lock.yaml ./
|
|
RUN pnpm install --frozen-lockfile
|
|
COPY . .
|
|
RUN pnpm build
|
|
|
|
# hanzoai/static defaults to -port 3000 -root /public. -spa is required: this is a
|
|
# 98-route BrowserRouter with its own `path="*"` NotFound, so an unknown path must
|
|
# reach index.html for the router to resolve it. Without it every deep link 404s.
|
|
FROM ghcr.io/hanzoai/static:v0.5.1
|
|
COPY --from=build /src/dist /public
|
|
ENTRYPOINT ["/static", "-spa"]
|