# Azure Blob Agent - A2A 版本 Dockerfile FROM python:3.11-slim WORKDIR /app # 安装系统依赖 RUN apt-get update && apt-get install -y \ gcc \ && rm -rf /var/lib/apt/lists/* # 复制requirements文件 COPY requirements_a2a.txt /app/ # 安装Python依赖 RUN pip install --no-cache-dir -r requirements_a2a.txt # 复制应用代码 COPY azure_blob_agent_a2a.py /app/ # 暴露端口 EXPOSE 8080 # 健康检查 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD python -c "import requests; requests.get('http://localhost:8080/health', timeout=5)" # 启动应用 CMD ["python", "azure_blob_agent_a2a.py"]