abhinand commited on
Commit
7ac194d
·
verified ·
1 Parent(s): 4d0a7ec

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +13 -0
entrypoint.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Read the secrets
4
+ TOGETHER_API_KEY=$(cat /tmp/secrets/TOGETHER_API_KEY)
5
+ GROQ_API_KEY=$(cat /tmp/secrets/GROQ_API_KEY)
6
+ REMOTE_DB_URI=$(cat /tmp/secrets/REMOTE_DB_URI)
7
+
8
+ # Set the environment variables
9
+ export OPENAI_API_KEYS="${TOGETHER_API_KEY};${GROQ_API_KEY}"
10
+ export DATABASE_URL="${REMOTE_DB_URI}"
11
+
12
+ # Execute the main container command
13
+ exec "$@"