mirror of
https://github.com/luxfi/docs.git
synced 2026-09-24 00:25:32 +00:00
Content accuracy fixes (from source code audit): - DEX: correct CPU ops/s (1M not 13M), latency (2ns GPU/487ns CPU), finality (1ms not 2ms) — all verified against dex/LLM.md - HSM: remove Azure as Signer (only PasswordProvider), fix to 5 providers - MPC: rewrite config flags to match actual cmd/mpcd/main.go source - CEX: clarify dual WebSocket ports (8091 /ws + 8092 dedicated) - Standard: update precompile count (42 not 39) - Chains: add 4 missing VMs (servicenodevm, falconfx, da, experimental) - HSM: Zymbit SCM not PKCS#11 Infrastructure: - Replace nginx/serve with hanzoai/static Go server (serve.go) - Dockerfile: multi-stage build with Go static server - Traefik Middleware for security headers (not nginx) Content: - Create 9 missing DAO stub pages (roles, treasury, distributions, etc.) - Fix broken regulated/ links (/docs/ prefix) - Fix vote/index.mdx relative link - Enrich thin pages with real source content - 452 pages total
26 lines
803 B
Docker
26 lines
803 B
Docker
FROM node:22-alpine AS build
|
|
WORKDIR /app
|
|
RUN corepack enable pnpm
|
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
|
|
COPY apps/docs/package.json apps/docs/package.json
|
|
RUN pnpm install --frozen-lockfile
|
|
COPY apps/docs apps/docs
|
|
RUN pnpm --filter lux-docs build
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:1.26-alpine AS server
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY serve.go .
|
|
ARG TARGETOS=linux
|
|
ARG TARGETARCH=amd64
|
|
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -o /serve .
|
|
|
|
FROM alpine:3.23
|
|
RUN apk add --no-cache ca-certificates
|
|
COPY --from=server /serve /serve
|
|
COPY --from=build /app/apps/docs/out /app
|
|
EXPOSE 3000
|
|
HEALTHCHECK --interval=10s --timeout=3s CMD wget -q --spider http://localhost:3000/health || exit 1
|
|
CMD ["/serve"]
|