gcli2api / entrypoint.sh
smgc's picture
Update entrypoint.sh
bfc20d8 verified
raw
history blame contribute delete
394 Bytes
#!/bin/sh
# 环境变量传入完整 JSON 内容(内容需转义,推荐使用变量整串)
echo "${CONFIG_JSON}" > /app/config.json
echo "${ACCOUNT1_OAUTH_CREDS_JSON}" > /app/account1_oauth_creds.json
# echo "${ACCOUNT2_OAUTH_CREDS_JSON}" > /app/account2_oauth_creds.json
echo "${ACCOUNT3_OAUTH_CREDS_JSON}" > /app/account3_oauth_creds.json
exec /app/gcli2api server -c /app/config.json