# Base image FROM python:3.9-slim-buster # Set the working directory WORKDIR /app # Copy the requirements.txt file COPY requirements.txt . # Install the dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the code into the container COPY . . # Expose the port EXPOSE 7860 # Run the application CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]