File size: 285 Bytes
e1ddd8e
 
45e3447
e1ddd8e
 
 
 
 
 
45e3447
 
e1ddd8e
5f4973d
 
e1ddd8e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# entrypoint.sh

# Check if the user already exists
if id "$USER_ID" >/dev/null 2>&1; then
    echo "User with ID $USER_ID already exists."
else
    # Create the user with the specified UID
    useradd -m -u "$USER_ID" user
fi

# Run the main command (uvicorn)
exec "$@"