Spaces:
Sleeping
Sleeping
circulartext
commited on
Commit
·
80db73d
1
Parent(s):
bbb5e3d
Update entrypoint.sh
Browse files- entrypoint.sh +5 -11
entrypoint.sh
CHANGED
@@ -1,13 +1,7 @@
|
|
1 |
-
#!/bin/
|
2 |
|
3 |
-
#
|
4 |
-
|
5 |
|
6 |
-
#
|
7 |
-
|
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 "$@"
|
|
|
|
|
|
|
|
|
|
|
|