FROM python:3.10 USER root ENV TOKEN=HirCoir/piper-laura-neuronal ENV REPO_ID=aGZfamlwc3Vsald5UXJRTkhvcWZqRHVweGRMdlNtbEhJbm1OTg== # Establece el directorio de trabajo dentro del contenedor RUN apt update RUN apt install -y \ make \ cmake \ clang \ gcc \ git \ curl \ sudo \ python3-dev \ python3 \ python3-pip \ python3-venv \ espeak-ng WORKDIR /root RUN git clone https://github.com/rhasspy/piper RUN pip install -q cython>=0.29.0 espeak-phonemizer>=1.1.0 librosa>=0.9.2 numpy>=1.19.0 pytorch-lightning~=1.7.0 torch~=1.11.0 RUN pip install -q onnx onnxruntime huggingface_hub RUN pip install -q torchtext==0.12.0 WORKDIR /root/piper/src/python COPY download-model.py . RUN python3 download-model.py RUN sleep 1000