File size: 779 Bytes
8953210
 
e3a8b2c
8953210
745fe74
 
8953210
745fe74
8953210
1f5b59d
af3acee
 
745fe74
8953210
 
2881292
11fbb3a
8953210
 
 
 
 
 
 
 
 
60dd9ec
8953210
 
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
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