Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +20 -12
Dockerfile
CHANGED
|
@@ -1,28 +1,36 @@
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
git ffmpeg wget && \
|
| 6 |
-
rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
WORKDIR /workspace
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
RUN git clone https://github.com/Rudrabha/Wav2Lip.git
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
|
| 18 |
|
| 19 |
-
#
|
| 20 |
RUN pip install --upgrade pip
|
|
|
|
|
|
|
|
|
|
| 21 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
-
# Copy FastAPI app
|
| 24 |
COPY app.py .
|
| 25 |
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
-
CMD ["
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
+
# Avoid interactive prompts
|
| 4 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
| 5 |
|
| 6 |
WORKDIR /workspace
|
| 7 |
|
| 8 |
+
# System deps
|
| 9 |
+
RUN apt-get update && apt-get install -y \
|
| 10 |
+
git ffmpeg wget \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
+
|
| 13 |
+
# Clone Wav2Lip
|
| 14 |
RUN git clone https://github.com/Rudrabha/Wav2Lip.git
|
| 15 |
|
| 16 |
+
# DOWNLOAD CHECKPOINTS (inside correct folder)
|
| 17 |
+
WORKDIR /workspace/Wav2Lip
|
| 18 |
+
RUN wget https://github.com/Rudrabha/Wav2Lip/releases/download/v0.1/Wav2Lip.pth && \
|
| 19 |
+
wget https://github.com/Rudrabha/Wav2Lip/releases/download/v0.1/wav2lip_gan.pth
|
| 20 |
|
| 21 |
+
# Move back
|
| 22 |
+
WORKDIR /workspace
|
| 23 |
|
| 24 |
+
# Upgrade pip to avoid dependency failures
|
| 25 |
RUN pip install --upgrade pip
|
| 26 |
+
|
| 27 |
+
# Install Python deps
|
| 28 |
+
COPY requirements.txt .
|
| 29 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 30 |
|
| 31 |
+
# Copy the FastAPI app
|
| 32 |
COPY app.py .
|
| 33 |
|
| 34 |
EXPOSE 7860
|
| 35 |
|
| 36 |
+
CMD ["python3", "app.py"]
|