Spaces:
Sleeping
Sleeping
Commit
·
e10d2fa
1
Parent(s):
7eeb965
Update entrypoint.sh
Browse files- entrypoint.sh +2 -12
entrypoint.sh
CHANGED
@@ -1,15 +1,5 @@
|
|
1 |
#!/bin/bash
|
2 |
# entrypoint.sh
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
-
echo "User with ID $USER_ID already exists."
|
7 |
-
else
|
8 |
-
# Create the user with the specified UID
|
9 |
-
useradd -m -u "$USER_ID" user
|
10 |
-
fi
|
11 |
-
|
12 |
-
# Run the main command (uvicorn)
|
13 |
-
exec "$@"
|
14 |
-
|
15 |
-
|
|
|
1 |
#!/bin/bash
|
2 |
# entrypoint.sh
|
3 |
|
4 |
+
# Run gosu to switch user and execute the provided command
|
5 |
+
gosu user "$@"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|