Skip to content

缺少 Docker 支持:项目没有 Dockerfile #13

@Zld1994

Description

@Zld1994

问题描述

项目没有 Dockerfile,无法使用 Docker 进行容器化部署和测试。

建议修复

  1. 创建 Dockerfile 用于开发环境
  2. 创建 Dockerfile 用于生产环境
  3. 创建 docker-compose.yml 用于本地开发
  4. 添加 Docker 构建和测试的 CI/CD 流程

示例 Dockerfile

FROM python:3.10-slim

WORKDIR /app

RUN apt-get update && apt-get install -y \\
    curl \\
    git \\
    && rm -rf /var/lib/apt/lists/*

COPY pyproject.toml .
COPY agentManager ./agentManager
COPY tests ./tests

RUN pip install --no-cache-dir -e .
RUN pip install --no-cache-dir -e ".[dev]"

EXPOSE 8000

CMD ["pytest", "tests/", "-v", "--cov=agentManager"]

优先级

低 - 这是一个部署和开发工具问题

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions