added the build user

Dieser Commit ist enthalten in:
Sebastian Tobie 2025-03-08 09:24:58 +01:00
Ursprung 3bf3d83115
Commit 25301c1bd6

Datei anzeigen

@ -14,6 +14,10 @@ commit(){
local container="$1"
buildah config -e - -l - -a - -p - "$container"
buildah config -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" "$container"
buildah run --user 0:0 mkdir /src
buildah run --user 0:0 useradd -M -u 1000 -U -g 1000 -d /src build
buildah run --user 0:0 chown 1000:1000 /src
buildah config -u build
buildah unshare ./cleanup.sh "$container"
buildah commit --rm -f oci --squash "$container" "$2"
trap - EXIT