# ✅ Use Python base image FROM python:3.11 # ✅ Set working directory WORKDIR /app # ✅ Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # ✅ Copy FastAPI script COPY app.py . # ✅ Expose the port used by FastAPI EXPOSE 7860 # ✅ Run FastAPI server CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]