# Use an official Python image FROM python:3.10 # Set the working directory WORKDIR /code # Copy files COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY ./App ./App # Expose port EXPOSE 7860 # Run the FastAPI app using uvicorn CMD ["uvicorn", "App.main:app", "--host", "0.0.0.0", "--port", "7860"]