circulartext commited on
Commit
222793b
·
1 Parent(s): 434bf77

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +6 -2
entrypoint.sh CHANGED
@@ -1,7 +1,11 @@
1
  #!/bin/bash
2
 
3
- # Set the correct permissions on the /app directory
4
  chmod -R 777 /app
5
 
6
- # Start the FastAPI application
7
  exec "$@"
 
 
 
 
 
1
  #!/bin/bash
2
 
3
+ # Set the correct permissions on the /app directory as root
4
  chmod -R 777 /app
5
 
6
+ # Start the FastAPI application as root initially
7
  exec "$@"
8
+
9
+ # Optionally, switch to a non-root user if needed
10
+ # USER 1000
11
+ # exec gosu 1000 "$@"