Dockerfile.content-finder 575 B

12345678910111213141516171819202122232425262728
  1. FROM registry.cn-hangzhou.aliyuncs.com/stuuudy/python:3.13-slim
  2. WORKDIR /app
  3. # 安装系统依赖
  4. RUN apt-get update && apt-get install -y --no-install-recommends \
  5. gcc \
  6. 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 ["python", "server.py"]