# Base image (lightweight Python runtime) FROM python:3.10-slim # Set work directory WORKDIR /code # Copy dependency list COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy all app files COPY . . # Expose default Hugging Face Space port EXPOSE 7860 # Launch FastAPI server CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]