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="sob111@users.noreply.huggingface.co" ENV GIT_COMMITTER_NAME="sob111" ENV GIT_COMMITTER_EMAIL="sob111@users.noreply.huggingface.co" # 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"]