# pick your favorite slim Python base FROM python:3.10-slim WORKDIR /app # install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # copy app COPY . . # expose Gradio default port EXPOSE 7860 # launch with unbuffered output CMD ["python", "-u", "app.py"]