FROM python:3.11-slim # Optional: install system packages your agent needs WORKDIR /app # Install Python deps first (better layer caching) COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of your code COPY . . # Start the server. HF injects $PORT; our main.py reads it. CMD ["python", "main.py"] :x