Speed_Read_AI / entrypoint.sh
circulartext's picture
Update entrypoint.sh
9e90a21
raw
history blame
323 Bytes
#!/bin/sh
set -e
# Check if the user needs to be created
if [ "$(id -u)" = "0" ]; then
if id "$USER_ID" >/dev/null 2>&1; then
echo "User with ID $USER_ID already exists."
else
useradd -m -u "$USER_ID" user
chown -R user:user /app
fi
fi
# Execute the CMD or provided command
exec "$@"