Spaces:
Running
Running
Create entrypoint.sh
Browse files- entrypoint.sh +10 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
|
| 4 |
+
# If CONFIG_JSON environment variable is set, write it to /app/config.json
|
| 5 |
+
if [ -n "$CONFIG_JSON" ]; then
|
| 6 |
+
echo "$CONFIG_JSON" > /app/config.json
|
| 7 |
+
echo "Config loaded from CONFIG_JSON environment variable"
|
| 8 |
+
fi
|
| 9 |
+
|
| 10 |
+
exec python -m gemini_web2api
|