Files
docs/apps/flow/Dockerfile
zeekay 92bf9543ee flow-site: serve via hanzoai/static, not nginx
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.
2026-06-25 14:23:46 -07:00

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"]