circulartext commited on
Commit
45e3447
1 Parent(s): 934aa4a

Create Entrypoint.sh

Browse files
Files changed (1) hide show
  1. Entrypoint.sh +12 -0
Entrypoint.sh ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Check if the user is root
4
+ if [ "$(id -u)" = "0" ]; then
5
+ # Drop privileges using gosu
6
+ exec gosu user "$0" "$@"
7
+ fi
8
+
9
+ # Handle any pre-start tasks if needed
10
+
11
+ # Run the main command
12
+ exec uvicorn app.main:app --host 0.0.0.0 --port 7860