# Use a lightweight Python image FROM python:3.10-slim # Install dependencies COPY requirements.txt . RUN pip install -r requirements.txt # Copy app code COPY . /app WORKDIR /app # Expose port EXPOSE 7860 # Run the app with uvicorn CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]