Dockerfile should run make check as a non-root user #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The STRTA
Dockerfileadded in #4 runsRUN make checkas root (the default user). Our standard is that images build and run as a non-root user — never root.Definition of done
Dockerfilecreates a non-root user andUSER-switches to it beforeRUN make check, with a writableHOMEand any build caches owned by that user. Root-only setup (package installs) stays before the switch.docker build .remains green with the in-imagemake checkrunning as the non-root user.The finishing commit's title must end with
(closes #N)referencing this issue.Closing without action. The non-root Dockerfile requirement was specific to sfdupes (where a permission-based test cannot run under a root Docker build); it is not a general standard. lora.vegas keeps its root Dockerfile from #4. The in-flight branch for this change is being abandoned.