abcd118q commited on
Commit
ee9be2d
·
verified ·
1 Parent(s): c4762a0

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +15 -0
entrypoint.sh ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ DATA_DIR="/data"
5
+ COMPOSIO_PERSISTENT_DIR="$DATA_DIR/.composio"
6
+
7
+ # Verify runtime persistence and symlink configurations
8
+ if [ -d "$DATA_DIR" ] && [ -w "$DATA_DIR" ]; then
9
+ mkdir -p "$COMPOSIO_PERSISTENT_DIR"
10
+ ln -sfn "$COMPOSIO_PERSISTENT_DIR" "$HOME/.composio"
11
+ else
12
+ mkdir -p "$HOME/.composio"
13
+ fi
14
+
15
+ exec uvicorn main:app --host 0.0.0.0 --port $PORT