mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Replace the nginx:alpine Dockerfile.static (platform rule violation) with a hanzoai/static re-serve shim that wraps the existing flow-site:0.1.0 Next.js export. Pin apps/flow/Dockerfile (from-source build) to static:0.4.1 and add the explicit --root=/srv --spa --port=3000 entrypoint. flow.hanzo.ai was serving ~20 bytes from the broken nginx pod; this serves the real 64 KB export.
19 lines
497 B
Docker
19 lines
497 B
Docker
FROM node:20-alpine AS builder
|
|
RUN corepack enable
|
|
WORKDIR /app
|
|
|
|
# Copy workspace root config
|
|
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml turbo.json ./
|
|
|
|
# Copy only the packages needed and the flow app
|
|
COPY packages/ ./packages/
|
|
COPY apps/flow/ ./apps/flow/
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
RUN pnpm --filter @hanzo/flow-site build
|
|
|
|
FROM ghcr.io/hanzoai/static:0.4.1
|
|
COPY --from=builder /app/apps/flow/out /srv
|
|
EXPOSE 3000
|
|
ENTRYPOINT ["/static", "--root=/srv", "--spa", "--port=3000"]
|