Spaces:
Sleeping
Sleeping
Commit
·
b4eaa7c
1
Parent(s):
3f27836
Update entrypoint.sh
Browse files- entrypoint.sh +3 -3
entrypoint.sh
CHANGED
|
@@ -10,11 +10,11 @@ else
|
|
| 10 |
# Create the user with a home directory and a bash shell
|
| 11 |
useradd -m -s /bin/bash "$USERNAME"
|
| 12 |
fi
|
| 13 |
-
|
| 14 |
-
# Set appropriate permissions for the application directory
|
| 15 |
-
chown -R "$USERNAME":"$USERNAME" /app
|
| 16 |
# Set appropriate permissions for the application directory
|
| 17 |
chmod -R 777 /app
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Start your application
|
| 20 |
exec gosu "$USERNAME" uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload
|
|
|
|
| 10 |
# Create the user with a home directory and a bash shell
|
| 11 |
useradd -m -s /bin/bash "$USERNAME"
|
| 12 |
fi
|
|
|
|
|
|
|
|
|
|
| 13 |
# Set appropriate permissions for the application directory
|
| 14 |
chmod -R 777 /app
|
| 15 |
+
# Set appropriate permissions for the application directory
|
| 16 |
+
chown -R "$USERNAME":"$USERNAME" /app
|
| 17 |
+
|
| 18 |
|
| 19 |
# Start your application
|
| 20 |
exec gosu "$USERNAME" uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload
|