Files
remotion_service/.claude/agents-memory/devops-engineer/2026-03-24-bun-image-existing-user.md
T
2026-04-06 01:44:58 +03:00

611 B

oven/bun Base Image Has Existing Non-Root User

Applies when: adding non-root user to any Dockerfile that uses oven/bun as base image (Remotion service, or future Bun-based services).

  • oven/bun:1.3.10 ships with a bun user (UID 1000) and bun group (GID 1000).
  • Home directory is /home/bun, shell is /bin/sh.
  • Do NOT create a new app user with groupadd/useradd -- GID 1000 collision causes groupadd: GID '1000' already exists build failure.
  • Instead: RUN chown -R bun:bun /app then USER bun.
  • Verified: container runs as uid=1000(bun) gid=1000(bun), /app/out is writable.