# Use official Python runtime base image FROM python:3.10.9 # Copy project files COPY . . # Set working directory WORKDIR / # Install dependencies listed in requirements.txt RUN pip install --no-cache-dir --upgrade -r requirements.txt # Command to run FastAPI app on port 7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]