smgc commited on
Commit
9b04b04
·
verified ·
1 Parent(s): 233586e

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. 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