# Use the official Python image as the base FROM python:3.9 # Set the working directory in the container WORKDIR /app # Copy all local files into the container COPY . . # Install the dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the port that FastAPI will run on EXPOSE 7860 # Start the FastAPI app with Uvicorn CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]