Spaces:
Running
Running
Commit
·
78cd9c1
1
Parent(s):
138fa67
Update entrypoint.sh
Browse files- entrypoint.sh +6 -13
entrypoint.sh
CHANGED
@@ -1,15 +1,8 @@
|
|
1 |
-
#!/bin/
|
|
|
2 |
|
3 |
-
#
|
4 |
-
|
5 |
-
adduser --disabled-password --gecos '' appuser
|
6 |
-
fi
|
7 |
|
8 |
-
#
|
9 |
-
|
10 |
-
chmod -R 755 /app
|
11 |
-
|
12 |
-
# Any other setup or initialization steps go here
|
13 |
-
|
14 |
-
# Run the main application
|
15 |
-
exec gosu appuser uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
set -e
|
3 |
|
4 |
+
# Set permissions at runtime
|
5 |
+
chmod -R 777 /app
|
|
|
|
|
6 |
|
7 |
+
# Execute the main command
|
8 |
+
exec "$@"
|
|
|
|
|
|
|
|
|
|
|
|