mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-12 19:39:49 +08:00
add gitcloning
This commit is contained in:
parent
82c300b417
commit
f623a5bb96
19
Dockerfile
19
Dockerfile
@ -115,14 +115,17 @@ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-2-Linux-x86
|
|||||||
&& bash miniconda.sh -b -p /opt/conda \
|
&& bash miniconda.sh -b -p /opt/conda \
|
||||||
&& rm miniconda.sh
|
&& rm miniconda.sh
|
||||||
|
|
||||||
# Use Conda's shell properly
|
# Clone the repository inside the container (Fixes Git LFS issue)
|
||||||
SHELL ["/opt/conda/bin/conda", "run", "-n", "base", "/bin/bash", "-c"]
|
RUN git clone --recursive https://github.com/ivy-consulting/GPT-SoVITS.git /app/GPT-SoVITS \
|
||||||
|
&& cd /app/GPT-SoVITS \
|
||||||
|
&& git lfs install \
|
||||||
|
&& git lfs pull
|
||||||
|
|
||||||
# Copy the current directory contents (GPT-SoVITS) into the container
|
# Copy local pretrained models (overwrite if necessary)
|
||||||
COPY . .
|
COPY GPT_SoVITS/pretrained_models/* /app/GPT-SoVITS/GPT_SoVITS/pretrained_models/
|
||||||
|
|
||||||
# Ensure LFS files are pulled
|
# Ensure LFS files are pulled again (to verify all files are present)
|
||||||
RUN git lfs pull
|
RUN cd /app/GPT-SoVITS && git lfs pull
|
||||||
|
|
||||||
# Install Conda dependencies
|
# Install Conda dependencies
|
||||||
RUN conda install -y -q -c pytorch -c nvidia cudatoolkit \
|
RUN conda install -y -q -c pytorch -c nvidia cudatoolkit \
|
||||||
@ -138,8 +141,8 @@ RUN pip install ipykernel
|
|||||||
# Modify config.py to enable WebUI
|
# Modify config.py to enable WebUI
|
||||||
RUN sed -i '10s/False/True/' config.py
|
RUN sed -i '10s/False/True/' config.py
|
||||||
|
|
||||||
# Expose port for WebUI
|
# Expose port for
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
# Set entrypoint to launch WebUI
|
# Set entrypoint to launch
|
||||||
CMD ["python", "api.py"]
|
CMD ["python", "api.py"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user