LivePortrait / Dockerfile
KiloClaw
v11: switch to gradio 5.25, drop patch script
29fb10c
Raw
History Blame Contribute Delete
943 Bytes
# cache-bust: v11
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
git ffmpeg libgl1 libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --no-cache-dir \
torch==2.3.0+cpu torchvision==0.18.0+cpu torchaudio==2.3.0+cpu \
--index-url https://download.pytorch.org/whl/cpu
# Use gradio 5.25 - completely rewrote schema handling, no more bool bug
RUN pip install --no-cache-dir \
"gradio==5.25.0" \
huggingface_hub \
omegaconf einops tqdm rich tyro \
"imageio[ffmpeg]" opencv-python-headless \
scikit-image lmdb safetensors \
diffusers transformers
RUN git clone --depth=1 https://github.com/KlingAIResearch/LivePortrait.git /app/LivePortrait && \
pip install --no-cache-dir -r /app/LivePortrait/requirements.txt 2>/dev/null || true
COPY app.py /app/app.py
EXPOSE 7860
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
CMD ["python", "/app/app.py"]