FROM python:3.11-slim WORKDIR /app COPY packages.txt /app/packages.txt RUN apt-get update && \ apt-get install -y --no-install-recommends git gcc libc6-dev && \ xargs apt-get install -y --no-install-recommends < /app/packages.txt && \ rm -rf /var/lib/apt/lists/* COPY requirements.txt /app/requirements.txt RUN pip install --no-cache-dir gradio==5.28.0 RUN pip install --no-cache-dir -r /app/requirements.txt COPY . /app ENV PORT=7860 EXPOSE 7860 CMD ["python", "app.py"]