FROM python:3.10-slim RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir \ torch \ transformers \ accelerate \ duckduckgo-search \ gradio WORKDIR /app COPY app.py . EXPOSE 7860 CMD ["python", "app.py"]