mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-31 03:05:40 +08:00
change the git
This commit is contained in:
parent
8c8f9e7b40
commit
7533685af9
65
Dockerfile
65
Dockerfile
@ -40,6 +40,55 @@
|
|||||||
|
|
||||||
# CMD ["python", "webui.py"]
|
# CMD ["python", "webui.py"]
|
||||||
|
|
||||||
|
# Use official Ubuntu 22.04 as base image
|
||||||
|
# FROM ubuntu:22.04
|
||||||
|
|
||||||
|
# # Set working directory
|
||||||
|
# WORKDIR /app/GPT-SoVITS
|
||||||
|
|
||||||
|
# # Set environment variables
|
||||||
|
# ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
# ENV PATH="/usr/local/bin:${PATH}"
|
||||||
|
|
||||||
|
# # Install basic dependencies
|
||||||
|
# RUN apt-get update && apt-get install -y \
|
||||||
|
# git \
|
||||||
|
# wget \
|
||||||
|
# curl \
|
||||||
|
# cmake \
|
||||||
|
# ffmpeg \
|
||||||
|
# && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# # Install Miniconda
|
||||||
|
# RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-2-Linux-x86_64.sh -O miniconda.sh \
|
||||||
|
# && bash miniconda.sh -b -p /opt/conda \
|
||||||
|
# && rm miniconda.sh
|
||||||
|
|
||||||
|
# # Add conda to PATH
|
||||||
|
# ENV PATH="/opt/conda/bin:${PATH}"
|
||||||
|
|
||||||
|
# # Copy the current directory contents (GPT-SoVITS) into the container
|
||||||
|
# COPY . .
|
||||||
|
|
||||||
|
# # Install Conda dependencies
|
||||||
|
# RUN conda install -y -q -c pytorch -c nvidia cudatoolkit \
|
||||||
|
# && conda install -y -q -c conda-forge gcc gxx ffmpeg cmake -c pytorch -c nvidia
|
||||||
|
|
||||||
|
# # Install Python requirements
|
||||||
|
# RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
# # Install additional Python packages
|
||||||
|
# RUN pip install ipykernel
|
||||||
|
|
||||||
|
# # Modify config.py to enable WebUI
|
||||||
|
# RUN sed -i '10s/False/True/' config.py
|
||||||
|
|
||||||
|
# # Expose port for WebUI
|
||||||
|
# EXPOSE 5000
|
||||||
|
|
||||||
|
# # Set entrypoint to launch WebUI
|
||||||
|
# CMD ["python", "api.py"]
|
||||||
|
|
||||||
# Use official Ubuntu 22.04 as base image
|
# Use official Ubuntu 22.04 as base image
|
||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
@ -48,15 +97,17 @@ WORKDIR /app/GPT-SoVITS
|
|||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
ENV PATH="/usr/local/bin:${PATH}"
|
ENV PATH="/usr/local/bin:/opt/conda/bin:${PATH}"
|
||||||
|
|
||||||
# Install basic dependencies
|
# Install basic dependencies including git-lfs
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
git \
|
||||||
|
git-lfs \
|
||||||
wget \
|
wget \
|
||||||
curl \
|
curl \
|
||||||
cmake \
|
cmake \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
|
&& git lfs install \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Miniconda
|
# Install Miniconda
|
||||||
@ -64,15 +115,15 @@ 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
|
||||||
|
|
||||||
# Add conda to PATH
|
|
||||||
ENV PATH="/opt/conda/bin:${PATH}"
|
|
||||||
|
|
||||||
# Copy the current directory contents (GPT-SoVITS) into the container
|
# Copy the current directory contents (GPT-SoVITS) into the container
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Ensure LFS files are pulled (if repository is cloned here; optional)
|
||||||
|
# RUN git lfs pull # Uncomment if you clone the repo inside the container instead of using COPY
|
||||||
|
|
||||||
# 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 \
|
||||||
&& conda install -y -q -c conda-forge gcc gxx ffmpeg cmake -c pytorch -c nvidia
|
&& conda install -y -q -c conda-forge gcc gxx ffmpeg cmake
|
||||||
|
|
||||||
# Install Python requirements
|
# Install Python requirements
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
@ -87,4 +138,4 @@ RUN sed -i '10s/False/True/' config.py
|
|||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
# Set entrypoint to launch WebUI
|
# Set entrypoint to launch WebUI
|
||||||
CMD ["python", "api.py"]
|
CMD ["python", "api.py"]
|
Loading…
x
Reference in New Issue
Block a user