We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9f888e + a5d5290 commit 4d56416Copy full SHA for 4d56416
entrypoint.sh
@@ -3,14 +3,13 @@
3
USER_NAME=${USER:-root}
4
USER_ID=${LOCAL_USER_ID:-0}
5
GROUP_ID=${LOCAL_GROUP_ID:-0}
6
-CMD=${*:-/bin/bash}
7
8
if [ "${USER_ID}" -ne "0" ]; then
9
groupadd -g ${GROUP_ID} ${USER_NAME} &> /dev/null
10
useradd --shell /bin/bash -M -u ${USER_ID} -g ${GROUP_ID} -o -c "" ${USER_NAME}
11
usermod -aG sudo ${USER_NAME}
12
13
- /usr/local/bin/gosu ${USER_NAME} /bin/bash -c "${CMD}"
+ /usr/local/bin/gosu ${USER_NAME} /bin/bash -c "$@"
14
else
15
- /bin/bash -c "${CMD}"
+ exec "$@"
16
fi
0 commit comments