circulartext commited on
Commit
78cd9c1
·
1 Parent(s): 138fa67

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +6 -13
entrypoint.sh CHANGED
@@ -1,15 +1,8 @@
1
- #!/bin/bash
 
2
 
3
- # Create the appuser if it doesn't exist
4
- if ! id -u appuser > /dev/null 2>&1; then
5
- adduser --disabled-password --gecos '' appuser
6
- fi
7
 
8
- # Set appropriate permissions for the application directory
9
- chown -R appuser:appuser /app
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 "$@"