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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -4,21 +4,21 @@ WORKDIR /app
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
 
24
  CMD ["python", "app.py"]
 
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 speechbrain
18
 
19
+ COPY app.py /app/app.py
20
+ COPY saved_models /app/saved_models
21
+
22
  EXPOSE 7860
23
 
24
  CMD ["python", "app.py"]