|
|
|
|
|
|
|
|
|
FROM python:3.8.16-slim-bullseye |
|
|
|
|
|
RUN apt update \ |
|
&& apt install -y aria2 wget curl tree unzip ffmpeg build-essential \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN apt-get clean; \ |
|
rm -rf /etc/machine-id /var/lib/dbus/machine-id /var/lib/apt/lists/* /tmp/* /var/tmp/*; \ |
|
find /var/log -name "*.log" -type f -delete |
|
|
|
|
|
RUN mkdir -p /content/tmp |
|
RUN chmod -R 777 /content/tmp |
|
RUN rm -rf /tmp |
|
RUN ln -s /content/tmp /tmp |
|
|
|
|
|
RUN mkdir -p /content |
|
RUN chmod -R 777 /content |
|
|
|
|
|
RUN mkdir -p /content/mplconfig |
|
RUN chmod -R 777 /content/mplconfig |
|
|
|
|
|
|
|
RUN mkdir -p /content/numbacache |
|
RUN chmod -R 777 /content/numbacache |
|
|
|
|
|
|
|
RUN mkdir -p /content/demucscache |
|
RUN chmod -R 777 /content/demucscache |
|
RUN ln -s /content/demucscache /.cache |
|
|
|
|
|
WORKDIR /content |
|
|
|
|
|
|
|
ENV PYTORCH_NO_CUDA_MEMORY_CACHING=1 \ |
|
MPLCONFIGDIR=/content/mplconfig \ |
|
NUMBA_CACHE_DIR=/content/numbacache |
|
|
|
|
|
RUN python -m pip install --no-cache-dir --upgrade pip |
|
|
|
|
|
RUN pip install --no-cache-dir --upgrade gradio |
|
RUN pip install --no-cache-dir --upgrade setuptools wheel |
|
RUN pip install --no-cache-dir faiss-gpu fairseq gradio ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2 |
|
|
|
|
|
COPY requirements.txt /content/requirements.txt |
|
|
|
|
|
RUN pip install --no-cache-dir --upgrade -r requirements.txt |
|
|
|
|
|
COPY . . |
|
|
|
|
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d /content -o hubert_base.pt |
|
|
|
|
|
RUN mkdir -p infer_pack |
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/attentions.py -d /content/infer_pack -o attentions.py |
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/commons.py -d /content/infer_pack -o commons.py |
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/models.py -d /content/infer_pack -o models.py |
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/models_onnx.py -d /content/infer_pack -o models_onnx.py |
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/models_onnx_moess.py -d /content/infer_pack -o models_onnx_moess.py |
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/modules.py -d /content/infer_pack -o modules.py |
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/transforms.py -d /content/infer_pack -o transforms.py |
|
|
|
|
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/DJQmUKV/rvc-inference/raw/main/vc_infer_pipeline.py -d /content -o vc_infer_pipeline.py |
|
|
|
|
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/DJQmUKV/rvc-inference/raw/main/config.py -d /content -o config.py |
|
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/DJQmUKV/rvc-inference/raw/main/util.py -d /content -o util.py |
|
|
|
|
|
RUN ls -l /tmp |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["python", "app.py"] |
|
|
|
|