# Use the official Python image from the Docker Hub FROM python:3.9-slim # Set the working directory WORKDIR /app # Copy the requirements file into the image COPY requirements.txt . # Install the required dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code COPY . . # Command to run the FastAPI application CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]