docker: Rename user and home dir inside containter

Cosmetic cleanup: call the user and its home dir "builder" as it is an
active entity. This will leave yocto build results under
/builder/build/tmp/deploy/...

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2017-06-19 09:28:33 +02:00 committed by Daniel Wagner
parent 81a30bc600
commit 85bec05dd6

View File

@ -3,9 +3,8 @@
USER_ID=${USERID:-30000}
# Create a non-root user that will perform the actual build
id build 2>/dev/null || \
useradd --uid $USER_ID --create-home --home-dir /build build
cd /build
exec gosu build "$@"
id builder 2>/dev/null || \
useradd --uid $USER_ID --create-home --home-dir /builder builder
cd /builder
exec gosu builder "$@"