fix: 添加 Spot 抢占式实例注解和环境变量注入
- 添加 eci-spot-instance 注解启用抢占式实例 - 从 .env 读取 ANTHROPIC_BASE_URL 并注入容器环境变量 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -146,12 +146,18 @@ async function main() {
|
||||
console.log(` 端口: ${options.port}`);
|
||||
console.log(` EIP 带宽: ${options.eipBandwidth} Mbps`);
|
||||
|
||||
// 构建环境变量 - 从当前 .env 读取关键配置注入容器
|
||||
const containerEnv: Record<string, string> = {
|
||||
ANTHROPIC_BASE_URL: process.env.ANTHROPIC_BASE_URL || 'https://api.anthropic.com',
|
||||
};
|
||||
|
||||
const result = await deployProxy({
|
||||
name,
|
||||
image,
|
||||
replicas: options.replicas,
|
||||
port: options.port,
|
||||
eipBandwidth: options.eipBandwidth,
|
||||
env: containerEnv,
|
||||
});
|
||||
|
||||
if (result.success) {
|
||||
|
||||
Reference in New Issue
Block a user