GopalGoyal commited on
Commit
4a85372
·
verified ·
1 Parent(s): e9ffad6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -12
Dockerfile CHANGED
@@ -1,28 +1,36 @@
1
  FROM python:3.10
2
 
3
- # Install system dependencies
4
- RUN apt-get update && apt-get install -y \
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
- # ADD THIS BELOW
13
- RUN wget -O Wav2Lip/Wav2Lip.pth https://github.com/Rudrabha/Wav2Lip/releases/download/v0.1/Wav2Lip.pth && \
14
- wget -O Wav2Lip/wav2lip_gan.pth https://github.com/Rudrabha/Wav2Lip/releases/download/v0.1/wav2lip_gan.pth
 
15
 
16
- # Copy requirements
17
- COPY requirements.txt .
18
 
19
- # Install Python packages
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 ["python", "app.py"]
 
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"]