dlzs commited on
Commit
1999a3d
·
verified ·
1 Parent(s): 9ee9034

Delete app/entrypoint.sh

Browse files
Files changed (1) hide show
  1. app/entrypoint.sh +0 -19
app/entrypoint.sh DELETED
@@ -1,19 +0,0 @@
1
- #!/bin/sh
2
-
3
- # 检查 GOOGLE_CREDENTIALS_JSON 环境变量是否存在且不为空
4
- if [ -n "$GOOGLE_CREDENTIALS_JSON" ]; then
5
- # 创建凭证目录 (Dockerfile里已经创建了,这里确保一下)
6
- mkdir -p /app/credentials
7
-
8
- # 将环境变量的内容写入文件
9
- echo "$GOOGLE_CREDENTIALS_JSON" > /app/credentials/service-account.json
10
- echo "Credential file created from secret."
11
-
12
- # 设置环境变量指向创建的文件 (如果应用需要)
13
- export GOOGLE_APPLICATION_CREDENTIALS=/app/credentials/service-account.json
14
- else
15
- echo "Warning: GOOGLE_CREDENTIALS_JSON secret not found or empty."
16
- fi
17
-
18
- # 执行 Dockerfile 中原来的 CMD 命令
19
- exec uvicorn main:app --host 0.0.0.0 --port 8050