circulartext commited on
Commit
e10d2fa
·
1 Parent(s): 7eeb965

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -12
entrypoint.sh CHANGED
@@ -1,15 +1,5 @@
1
  #!/bin/bash
2
  # entrypoint.sh
3
 
4
- # Check if the user already exists
5
- if id "$USER_ID" >/dev/null 2>&1; then
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 "$@"