11a0e446创建于 1月12日历史提交
FROM python:3.12-slim-bullseye

LABEL maintainer="AgentDock"
LABEL version="1.0.0"
LABEL description="AgentDock Manager - MCP Container Orchestration Service"

EXPOSE 8080

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    curl \
    && rm -rf /var/lib/apt/lists/*

# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Health check
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
    CMD curl -sS 'http://localhost:8080/alive' || exit 1

# Run with gunicorn
ENTRYPOINT ["gunicorn", "main:app", "--worker-class", "uvicorn.workers.UvicornWorker"]