content: FROM python:3.9-slim
  
  WORKDIR /app
  
  # Install Rust and build dependencies
  RUN apt-get update && apt-get install -y \
      gcc \
      build-essential \
      curl \
      pkg-config \
      && rm -rf /var/lib/apt/lists/* \
      && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
  
  # Add Rust to PATH
  ENV PATH="/root/.cargo/bin:${PATH}"
  
  # Install dependencies in order
  RUN pip install --no-cache-dir fastapi uvicorn
  RUN pip install --no-cache-dir regex
  RUN pip install --no-cache-dir tiktoken
  RUN pip install --no-cache-dir crewai langchain
  
  COPY . /app
  
  EXPOSE 8006
  
  CMD ["uvicorn", "crew_agent:app", "--host", "0.0.0.0", "--port", "8006"]
  