Files
Anthias/docker
Viktor Petersson e7f34b27e2 fix(docker): pin viewer UID/GID across all images for deterministic ownership (#2958)
- Create the `viewer` user with a fixed UID/GID (1000) in the shared
  Dockerfile.base.j2 so it exists, and resolves identically, in the
  viewer, server and celery images.
- Drop the implicit `useradd -g video viewer` from the viewer image
  (it picked the next free uid per image and was absent from
  server/celery), keeping `video` as a supplementary group.

Without a pinned id, ownership of /data/.anthias (shared across the
containers) was non-deterministic, so a `chown viewer …` in one
container and the uid a file was written as in another could disagree —
a root cause behind the upgraded-device config-permission crash-loop.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 13:00:49 +02:00
..