# Use a lightweight Python base FROM python:3.10-slim # Install any OS‐level deps (if needed) RUN apt-get update && apt-get install -y --no-install-recommends \ # (no extra system packages needed in this particular app) \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy our application code COPY app.py . # Expose Gradio’s default port EXPOSE 7860 # Launch the app CMD ["python", "app.py"]