File size: 911 Bytes
abf6bf2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.10-slim AS build

RUN pip install runpod

RUN apt update
RUN apt-get -y install build-essential python3-dev ffmpeg
RUN pip3 install --upgrade setuptools wheel
RUN pip3 install --upgrade pip
RUN pip3 install faiss-gpu fairseq gradio ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2
RUN apt -y install -qq aria2
RUN pip install mega.py
RUN pip install gdown
RUN apt install git -y
RUN apt install unzip -y
RUN pip install opencv_python>=4.2.0

COPY Retrieval-based-Voice-Conversion-WebUI .
COPY vocalsplit /vocalsplit
COPY models/rose-bp.pth weights/rose-bp.pth
COPY models/jungkook.pth weights/jungkook.pth
COPY models/drake.pth weights/drake.pth
COPY models/ariana-grande.pth weights/ariana-grande.pth
COPY models/iu.pth weights/iu.pth

FROM build AS app

COPY handler.py .
COPY voice_generation.py .

ENV PYTHONUNBUFFERED=1

CMD ["python", "/handler.py"]