# docker-compose for @suaveplan/docs build. # # Runs Docusaurus inside a Node 22 LTS container. The `docs/` directory # from the host (populated by `bun scripts/snapshot-docs-content.ts`) is # mounted read-only as the input; the host's `build/` directory is mounted # read-write as the output. After the one-shot build completes, the host # has `apps/docs/build/` ready to be served by the Bun bytecode binary. # # Usage from `apps/docs/`: # bun run snapshot # populate ./docs # docker compose run --rm --build builder # bun run build:server # compile the static-server binary # # Or all in one step: # bun run build:all services: builder: build: context: ./docusaurus dockerfile: Dockerfile image: suaveplan-docs-builder container_name: suaveplan-docs-builder volumes: - ./docs:/work/docs:ro - ./build:/work/build working_dir: /work