Spaces:
Sleeping
Sleeping
Commit
·
9fbdde6
1
Parent(s):
26f1ecd
Update entrypoint.sh
Browse files- entrypoint.sh +2 -3
entrypoint.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
# Get the username from the
|
| 4 |
-
USERNAME=$
|
| 5 |
|
| 6 |
# Check if the username is empty
|
| 7 |
if [ -z "$USERNAME" ]; then
|
|
@@ -22,4 +22,3 @@ chown -R "$USERNAME":"$USERNAME" /app
|
|
| 22 |
|
| 23 |
# Start your application
|
| 24 |
exec gosu "$USERNAME" uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload
|
| 25 |
-
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# Get the username from the environment variable
|
| 4 |
+
USERNAME=$USERNAME
|
| 5 |
|
| 6 |
# Check if the username is empty
|
| 7 |
if [ -z "$USERNAME" ]; then
|
|
|
|
| 22 |
|
| 23 |
# Start your application
|
| 24 |
exec gosu "$USERNAME" uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload
|
|
|