circulartext commited on
Commit
d55c287
·
verified ·
1 Parent(s): fe7fa7b

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +4 -2
entrypoint.sh CHANGED
@@ -1,6 +1,8 @@
1
  #!/bin/bash
2
  set -e
3
 
 
 
4
 
5
- # Run the CMD or any other command you want to execute
6
- exec "$@"
 
1
  #!/bin/bash
2
  set -e
3
 
4
+ # Specify the path to your app.py file (assuming it's in the root directory)
5
+ APP_PATH="/app/main.py"
6
 
7
+ # Run the Uvicorn server with your FastAPI application
8
+ exec uvicorn "$APP_PATH:app" --host 0.0.0.0 --port 7860 --reload