Spaces:
Runtime error
Runtime error
circulartext
commited on
Commit
•
a684c80
1
Parent(s):
f3256c7
Update entrypoint.sh
Browse files- entrypoint.sh +2 -11
entrypoint.sh
CHANGED
@@ -1,16 +1,7 @@
|
|
1 |
#!/bin/bash
|
2 |
-
|
3 |
set -e
|
4 |
|
5 |
-
# Specify the path to your main.py file
|
6 |
-
MAIN_PATH="/app/main.py"
|
7 |
|
8 |
-
#
|
9 |
-
|
10 |
-
echo "User with ID $USER_ID already exists."
|
11 |
-
else
|
12 |
-
adduser --disabled-password --uid "$USER_ID" user
|
13 |
-
fi
|
14 |
|
15 |
-
# Switch to the user before starting the application
|
16 |
-
exec gosu user uvicorn "$MAIN_PATH:app" --host 0.0.0.0 --port 7860 --reload
|
|
|
1 |
#!/bin/bash
|
|
|
2 |
set -e
|
3 |
|
|
|
|
|
4 |
|
5 |
+
# Run the CMD or any other command you want to execute
|
6 |
+
exec "$@"
|
|
|
|
|
|
|
|
|
7 |
|
|
|
|