611 B
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.10ships with abunuser (UID 1000) andbungroup (GID 1000).- Home directory is
/home/bun, shell is/bin/sh. - Do NOT create a new
appuser withgroupadd/useradd-- GID 1000 collision causesgroupadd: GID '1000' already existsbuild failure. - Instead:
RUN chown -R bun:bun /appthenUSER bun. - Verified: container runs as
uid=1000(bun) gid=1000(bun),/app/outis writable.