FROM python:3.10 RUN apt update && apt install -y cmake gcc portaudio19-dev ffmpeg WORKDIR /code ENV NUMBA_CACHE_DIR=/tmp/ ENV TRANSFORMERS_CACHE=/tmp/ ENV XDG_CACHE_HOME=/tmp/ COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --force-reinstall -r /code/requirements.txt RUN pip install --force-reinstall https://github.com/wbond/oscrypto/archive/d5f3437ed24257895ae1edd9e503cfb352e635a8.zip COPY . /code/ RUN pip install -e . RUN cd /code/vits/monotonic_align && \ mkdir -p /code/vits/monotonic_align/vits/monotonic_align/ && \ python setup.py build_ext --inplace && \ mv /code/vits/monotonic_align/vits/monotonic_align/* /code/vits/monotonic_align/ CMD ["python", "-m", "speakers", "--verbose", "--mode", "web"] EXPOSE 7860