File size: 251 Bytes
45e3447
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Check if the user is root
if [ "$(id -u)" = "0" ]; then
    # Drop privileges using gosu
    exec gosu user "$0" "$@"
fi

# Handle any pre-start tasks if needed

# Run the main command
exec uvicorn app.main:app --host 0.0.0.0 --port 7860