Spaces:
Sleeping
Sleeping
Update entrypoint.sh
Browse files- entrypoint.sh +3 -8
entrypoint.sh
CHANGED
|
@@ -1,11 +1,6 @@
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
|
| 3 |
-
# Create a directory for storing files and set permissions
|
| 4 |
-
mkdir /code/files
|
| 5 |
-
chmod 777 /code/files
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
# Run the main application
|
| 11 |
-
exec uvicorn app:app --host 0.0.0.0 --port 7860
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
# Run the CMD or any other command you want to execute
|
| 6 |
+
exec "$@"
|
|
|
|
|
|
|
|
|