# Use a lightweight Python image FROM python:3.9 # Set the working directory WORKDIR /app # Copy all files COPY . . # Install dependencies RUN pip install -r requirements.txt # Expose port 7860 for Hugging Face EXPOSE 7860 # Run the FastAPI server CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "7860"]