Spaces:
Sleeping
Sleeping
Commit
·
87aacc5
1
Parent(s):
80db73d
Update entrypoint.sh
Browse files- entrypoint.sh +6 -3
entrypoint.sh
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
#!/bin/bash
|
|
|
2 |
|
3 |
-
#
|
4 |
-
|
|
|
|
|
5 |
|
6 |
-
# Run the
|
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 "$@"
|