circulartext commited on
Commit
80db73d
·
1 Parent(s): bbb5e3d

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +5 -11
entrypoint.sh CHANGED
@@ -1,13 +1,7 @@
1
- #!/bin/sh
2
 
3
- # Generate a unique user ID for this space
4
- USER_ID=$(uuidgen)
5
 
6
- # Create a new user with the generated user ID
7
- useradd -m -u "$USER_ID" user
8
-
9
- # Switch to the new user
10
- su - user
11
-
12
- # Start the application
13
- uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload
 
1
+ #!/bin/bash
2
 
3
+ # Activate the virtual environment
4
+ source /path/to/your/virtualenv/bin/activate
5
 
6
+ # Run the command passed as arguments to entrypoint.sh
7
+ exec "$@"