# Use an official Python runtime as the base image FROM python:3.11-slim # Set the working directory in the container WORKDIR /app # Copy the requirements file and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the application code to the container COPY . /app/ # Expose the port the application will run on EXPOSE 7860 # Define the command to run the application CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "7860", "--forwarded-allow-ips", "*"]