File size: 874 Bytes
229ea4d 54e6e0a 229ea4d 54e6e0a 229ea4d 54e6e0a 229ea4d 54e6e0a 229ea4d 54e6e0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | # Dockerfile.cpu
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
git-lfs \
ffmpeg \
libsm6 \
libxext6 \
cmake \
rsync \
libgl1 \
build-essential \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
RUN pip install --no-cache-dir -U pip setuptools wheel
# HF ι’ι£η
RUN pip install --no-cache-dir \
datasets \
"huggingface-hub>=0.30" \
"hf-transfer>=0.1.4" \
"protobuf<4" \
"click<8.1" \
"uvicorn>=0.14.0" \
"websockets>=10.4" \
spaces \
"gradio[oauth,mcp]==6.9.0"
COPY requirements.txt /tmp/requirements.txt
# requirements.txt γ« flash_attn γε
₯γ£γ¦γγγι€ε€γγ¦γγ
RUN sed -i '/flash_attn/d' /tmp/requirements.txt && \
pip install --no-cache-dir -r /tmp/requirements.txt
COPY . .
CMD ["python", "app.py"] |