# Use an official Python runtime FROM python:3.10 # Set the working directory WORKDIR /app # Copy the requirements file COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the FastAPI app file COPY app.py . # Expose the port FastAPI runs on EXPOSE 7860 # Command to run FastAPI using Uvicorn CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]