File size: 1,235 Bytes
eba6956
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
34
35
36
37
38
39
40
41
42
43
44
FROM python:3.11

WORKDIR /home/user/app
ENV HOME="/home/user"
#ENV HOME="/tmp"
ENV HF_HOME="/home/user/.cache/huggingface"
ENV OMP_NUM_THREADS=1

# ⚡ Configuración de Git vía variables de entorno
ENV GIT_AUTHOR_NAME="sob111"
ENV GIT_AUTHOR_EMAIL="[email protected]"
ENV GIT_COMMITTER_NAME="sob111"
ENV GIT_COMMITTER_EMAIL="[email protected]"

# Instalar dependencias
COPY requirements.txt .
RUN apt-get update && apt-get install -y git wget ffmpeg libsndfile1 unzip build-essential \
    && mkdir -p /home/user/.cache/huggingface \
    && chmod -R 777 /home/user/.cache \
    && pip install --upgrade pip \
    && pip install --no-cache-dir -r requirements.txt \
    && rm -rf /var/lib/apt/lists/*

# Copiar el resto del proyecto
COPY . .

RUN mkdir /home/user/TTS

RUN git clone --branch v0.22.0 https://github.com/coqui-ai/TTS.git /home/user/TTS \
    && cd /home/user/TTS \
    && git submodule update --init --recursive \
    && pip install --upgrade pip \
    && pip install --no-cache-dir -e .

RUN mkdir /tmp/output_model

RUN pip show TTS
# RUN which tts_train
# RUN python -m TTS.bin.train --help


# Comando por defecto
# CMD ["python", "app.py"]
CMD ["python", "finetune_xtts_hf.py"]