Skip to content

Storyteller: Refactor / Monorepo Structure #16628

Description

@MickLesk

📌 Task summary

Storyteller: Refactor / Monorepo Structure

📋 Task details

install/storyteller-install.sh only builds the Next.js web app. Upstream's current Dockerfile does substantially more that our script never picked up:

  • Installs whisper.cpp binaries + a default model via libraries/ghost-story/dist/cli/bin.js install binary/model (arch-aware: linux-x64-cpu/linux-arm64-cpu, plus a legacy x64 variant)
  • Copies work-dist/file-write-dist worker bundles into the standalone output
  • Copies libraries/align native prebuilds (linux-x64/linux-arm64) into work-dist/@storyteller-platform/align/prebuilds/...
  • Copies @echogarden/icu-segmentation-wasm wasm files, @parcel/watcher native binaries, and the kuromoji package into node_modules (all required at runtime, not traced by Next's standalone bundler)
  • Sets additional env vars: ERROR_ALIGN_NATIVE_BINDING, STORYTELLER_WORKER, STORYTELLER_FILE_WRITE_WORKER, STORYTELLER_WHISPER_VARIANT
  • Runner stage installs extra apt packages: gosu libcurl4 libxml2 (ours only has ffmpeg)

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions