File size: 1,219 Bytes
7d82bd3
eb11b36
 
b18ec73
 
2619293
05289c6
d20b113
9d73673
 
 
 
 
15a53a7
eb11b36
 
5c5556c
2619293
 
 
bfe92d4
d36fdeb
2619293
5c5556c
 
 
 
 
 
 
 
3f2ae83
 
d1f8e14
1ed2108
44046ff
d1f8e14
 
eb11b36
 
 
 
ba8de6f
 
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
45
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/*

RUN mkdir /tmp/TTS

RUN git clone --branch v0.22.0 https://github.com/coqui-ai/TTS.git /tmp/TTS \
    && cd /tmp/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


# Copiar el resto del proyecto
COPY . .

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