Create entrypoint.sh
Browse files- entrypoint.sh +7 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# 环境变量传入完整 JSON 内容(内容需转义,推荐使用变量整串)
|
| 4 |
+
echo "${CONFIG_JSON}" > /app/config.json
|
| 5 |
+
echo "${ACCOUNT1_OAUTH_CREDS_JSON}" > /app/account1_oauth_creds.json
|
| 6 |
+
|
| 7 |
+
exec /app/gcli2api server -c /app/config.json
|