build(repo): package the container, Unraid template and PWA

Merged
BR
12d ago
+900-34

Summary

Closes #11. Part of #1.

  • One container image runs the whole app from the /data volume: a multi-stage build on Bun's Debian slim image, running as a non-root user, with a health check that needs no curl. INSTAGRAM_API is left unset, so the image starts in fake mode.
  • /api/health and the PWA's manifest and icons answer without the optional password; a read without a session gets only whether the app is up. Everything else stays behind the gate.
  • CI builds the image on every pull request and smoke-tests it: user, volume, health check, UI, manifest and icons, a rendered frame, the password gate and a clean stop.
  • A version tag publishes the image for amd64 and arm64 to the repository's container registry, after the same smoke test on native runners for both.
  • An Unraid template, with every variable from .env.example, fake mode as the default and secrets masked.
  • The app installs as a PWA from the icons in brand/favicon, themed for light and dark. No service worker: the app is online only.
  • The README walks through running the container, creating the Meta app, generating the token, configuring the bucket and going live, and warns against exposing the app to the internet. Publishing through a presigned link is marked as unverified.
  • Startup says plainly when DATA_DIR cannot be written. Decisions are recorded as ADR 0010.

Evidence

The image cannot be built where this was written, so this pull request's image check is its first build and smoke test. The runtime was simulated from exactly the files the final stage copies: it started in fake mode, the health check passed, the UI, manifest and icons were served, a frame rendered with the bundled fonts, and it stopped cleanly on SIGTERM. Typecheck, lint, 548 tests and the build pass locally.

Merge Danger

Low for the running app. The release workflow and the arm64 image are proven only by the first version tag, and the Unraid template is untested on Unraid.