FROM python:3.10 # Set working directory WORKDIR /app # Copy files COPY . . # Install dependencies RUN apt-get update && \ xargs -r -a apt.txt apt-get install -y && \ pip install --no-cache-dir -r requirements.txt # Expose port EXPOSE 7860 # Run FastAPI using uvicorn CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]