docker: Start bash if no command is provided

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2017-07-19 08:51:22 +02:00 committed by Daniel Wagner
parent bd61564b58
commit 171440c0a1

View File

@ -18,4 +18,8 @@ id builder 2>/dev/null || \
useradd --uid $USER_ID --create-home --home-dir /builder builder
cd /builder
exec gosu builder "$@"
if [ -n "$1" ]; then
exec gosu builder "$@"
else
exec gosu builder bash
fi