wav2lip / Dockerfile
GopalGoyal's picture
Update Dockerfile
4a85372 verified
raw
history blame contribute delete
813 Bytes
FROM python:3.10
# Avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /workspace
# System deps
RUN apt-get update && apt-get install -y \
git ffmpeg wget \
&& rm -rf /var/lib/apt/lists/*
# Clone Wav2Lip
RUN git clone https://github.com/Rudrabha/Wav2Lip.git
# DOWNLOAD CHECKPOINTS (inside correct folder)
WORKDIR /workspace/Wav2Lip
RUN wget https://github.com/Rudrabha/Wav2Lip/releases/download/v0.1/Wav2Lip.pth && \
wget https://github.com/Rudrabha/Wav2Lip/releases/download/v0.1/wav2lip_gan.pth
# Move back
WORKDIR /workspace
# Upgrade pip to avoid dependency failures
RUN pip install --upgrade pip
# Install Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the FastAPI app
COPY app.py .
EXPOSE 7860
CMD ["python3", "app.py"]