FROM python:3.10-slim WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir \ transformers>=4.40.0 \ datasets>=4.7.0 \ accelerate>=0.28.0 \ peft>=0.10.0 \ torch>=2.0.0 \ gradio>=4.0.0 \ sentencepiece>=0.1.99 \ huggingface_hub>=1.5.0 COPY app.py . EXPOSE 7860 CMD ["python", "app.py"]