FROM python:3.10-slim ENV PYTHONUNBUFFERED=1 WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ git \ wget \ curl \ && rm -rf /var/lib/apt/lists/* # Copy requirements COPY requirements.txt . # Install Python packages RUN pip install --no-cache-dir -r requirements.txt # Copy app files COPY . . # Expose Hugging Face Space port EXPOSE 7860 # Start server CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]