|
|
|
FROM cnstark/pytorch:2.0.1-py3.9.17-cuda11.8.0-ubuntu20.04 |
|
|
|
LABEL maintainer="breakstring@hotmail.com" |
|
LABEL version="dev-20240209" |
|
LABEL description="Docker image for GPT-SoVITS" |
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
ENV TZ=Etc/UTC |
|
RUN apt-get update && \ |
|
apt-get install -y --no-install-recommends tzdata ffmpeg libsox-dev parallel aria2 git git-lfs && \ |
|
git lfs install && \ |
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
WORKDIR /workspace |
|
COPY requirements.txt /workspace/ |
|
RUN pip install --no-cache-dir -r requirements.txt |
|
|
|
|
|
ARG IMAGE_TYPE=full |
|
|
|
|
|
|
|
COPY ./Docker /workspace/Docker |
|
|
|
RUN if [ "$IMAGE_TYPE" != "elite" ]; then \ |
|
chmod +x /workspace/Docker/download.sh && \ |
|
/workspace/Docker/download.sh && \ |
|
python /workspace/Docker/download.py && \ |
|
python -m nltk.downloader averaged_perceptron_tagger cmudict; \ |
|
fi |
|
|
|
|
|
|
|
COPY . /workspace |
|
|
|
|
|
COPY . /workspace |
|
|
|
EXPOSE 9871 9872 9873 9874 9880 |
|
|
|
CMD ["python", "webui.py"] |
|
|