rishidahiya commited on
Commit
c79049c
·
verified ·
1 Parent(s): 1fae304

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -4,20 +4,20 @@ WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
6
 
 
7
  RUN git clone https://github.com/CorentinJ/Real-Time-Voice-Cloning.git /tmp/vc
8
 
 
9
  RUN cp -r /tmp/vc/encoder /app/ && \
10
  cp -r /tmp/vc/synthesizer /app/ && \
11
  cp -r /tmp/vc/vocoder /app/ && \
12
  cp -r /tmp/vc/utils /app/ && \
13
- rm -rf /tmp/vc
 
14
 
15
  RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
16
 
17
- RUN pip install --no-cache-dir librosa==0.9.2 matplotlib numpy scipy numba inflect==5.6.2 unidecode Pillow soundfile flask flask-cors python-dotenv gradio
18
-
19
- COPY app.py /app/app.py
20
- COPY saved_models /app/saved_models
21
 
22
  EXPOSE 7860
23
 
 
4
 
5
  RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
6
 
7
+ # Clone repo to temp location
8
  RUN git clone https://github.com/CorentinJ/Real-Time-Voice-Cloning.git /tmp/vc
9
 
10
+ # Copy only the necessary modules (not overwriting app.py)
11
  RUN cp -r /tmp/vc/encoder /app/ && \
12
  cp -r /tmp/vc/synthesizer /app/ && \
13
  cp -r /tmp/vc/vocoder /app/ && \
14
  cp -r /tmp/vc/utils /app/ && \
15
+ rm -rf /tmp/vc && \
16
+ ls -la /app/
17
 
18
  RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
19
 
20
+ RUN pip install --no-cache-dir librosa==0.9.2 matplotlib numpy scipy numba inflect==5.6.2 unidecode Pillow soundfile flask flask-cors python-dotenv gradio speechbrain
 
 
 
21
 
22
  EXPOSE 7860
23