Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 1s
docs(.gitignore/README/QUICKSTART): 更新文档和忽略配置 - 添加IDE配置、日志和数据文件到.gitignore - 重构QUICKSTART.md,提供Docker Compose和本地开发两种部署方式 - 更新README.md,优化项目介绍和架构说明 - 移除旧的agent.py和backend.py文件 ```
23 lines
440 B
Docker
23 lines
440 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# 复制依赖文件并安装(利用 Docker 层缓存)
|
|
COPY requirement.txt .
|
|
RUN pip install --no-cache-dir -r requirement.txt
|
|
|
|
# 复制项目代码
|
|
COPY app/ ./app/
|
|
COPY frontend/ ./frontend/
|
|
COPY data/ ./data/
|
|
COPY scripts/ ./scripts/
|
|
|
|
# 设置 PYTHONPATH 确保模块能被找到
|
|
ENV PYTHONPATH=/app
|
|
|
|
# 暴露端口(文档用途)
|
|
EXPOSE 8001
|
|
|
|
# 启动命令
|
|
CMD ["python", "app/backend.py"]
|