#!/usr/bin/env bash

USER_ID=${LOCAL_USER_ID:-9001}

echo "Starting with UID : $USER_ID"
useradd --shell /bin/bash -u ${USER_ID} -o -c "" -m user
export HOME=/home/user

exec /usr/local/bin/gosu user "$@"
#!/usr/bin/env bash

USER_ID=${LOCAL_USER_ID:-9001}

echo "Starting with UID : $USER_ID"
useradd --shell /bin/bash -u ${USER_ID} -o -c "" -m user
export HOME=/home/user

exec gosu user "$@"
Fix for "gosu" invocation command
Fix for "gosu" invocation command
