circulartext commited on
Commit
d0fa205
·
1 Parent(s): 9ae4f84

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -3
entrypoint.sh CHANGED
@@ -13,8 +13,7 @@ fi
13
 
14
  # Set appropriate permissions for the application directory
15
  chown -R "$USERNAME":"$USERNAME" /app
16
- chmod -R 755 /app
17
 
18
- # Switch to the user for improved security
19
- su "$USERNAME" -c "exec /usr/local/bin/entrypoint.sh"
20
 
 
13
 
14
  # Set appropriate permissions for the application directory
15
  chown -R "$USERNAME":"$USERNAME" /app
 
16
 
17
+ # Start your application
18
+ exec gosu "$USERNAME" uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload
19