docker: Start bash if no command is provided
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
bd61564b58
commit
171440c0a1
@ -18,4 +18,8 @@ id builder 2>/dev/null || \
|
|||||||
useradd --uid $USER_ID --create-home --home-dir /builder builder
|
useradd --uid $USER_ID --create-home --home-dir /builder builder
|
||||||
|
|
||||||
cd /builder
|
cd /builder
|
||||||
exec gosu builder "$@"
|
if [ -n "$1" ]; then
|
||||||
|
exec gosu builder "$@"
|
||||||
|
else
|
||||||
|
exec gosu builder bash
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user