This commit is contained in:
Ubuntu
2026-01-05 12:44:28 +00:00
commit 23116e9086
64 changed files with 9030 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM python:3.11-slim
WORKDIR /app
# 复制应用代码
COPY requirements.txt .
COPY app.py .
COPY k8s_manager.py .
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt
# 设置环境变量
ENV PYTHONUNBUFFERED=1
ENV NAMESPACE=ai-agents
ENV SERVICE_PORT=8000
ENV SERVICE_HOST=0.0.0.0
# 暴露端口
EXPOSE 8000
# 运行应用
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]