File size: 436 Bytes
b1c21b6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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"]
|