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

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +6 -3
entrypoint.sh CHANGED
@@ -1,7 +1,10 @@
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 "$@"
 
1
  #!/bin/bash
2
+ set -e
3
 
4
+ # Set the user dynamically during runtime based on an environment variable
5
+ if [ -n "$USER_ID" ]; then
6
+ adduser --disabled-password --gecos '' --uid $USER_ID user
7
+ fi
8
 
9
+ # Run the CMD
10
  exec "$@"