Dockerfile.content-finder 731 B

12345678910111213141516171819202122232425262728
  1. FROM registry.cn-hangzhou.aliyuncs.com/stuuudy/python:3.13-slim
  2. WORKDIR /app
  3. # 安装系统依赖(使用阿里云镜像源)
  4. RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources \
  5. && apt-get update \
  6. && apt-get install -y --no-install-recommends curl \
  7. && rm -rf /var/lib/apt/lists/*
  8. # 复制依赖文件
  9. COPY requirements.txt .
  10. # 安装 Python 依赖
  11. RUN pip install --no-cache-dir -r requirements.txt
  12. # 复制项目代码
  13. COPY agent/ ./agent/
  14. COPY examples/content_finder/ ./examples/content_finder/
  15. # 设置工作目录
  16. WORKDIR /app/examples/content_finder
  17. # 暴露端口
  18. EXPOSE 8080
  19. # 启动命令
  20. CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8080"]