# AgentHome Dockerfile
# AI Agent Development Toolkit

FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive

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

# Copy requirements file
COPY requirements.txt .

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy project files
COPY . .

# Create non-root user
RUN useradd -m -u 1000 agenthome && \
    chown -R agenthome:agenthome /app
USER agenthome

# Default command
CMD ["python", "-c", "print('🏠 AgentHome Ready! Run: make help')"]

# Expose ports
EXPOSE 8000 8501 7860

# Labels
LABEL maintainer="badhope"
LABEL description="AI Agent Development Toolkit"
LABEL version="1.0.0"
