17 lines
520 B
Docker
17 lines
520 B
Docker
FROM corex:3.2.1
|
|
|
|
WORKDIR /root
|
|
|
|
COPY requirements.txt /root
|
|
RUN pip install -r requirements.txt
|
|
RUN apt update && apt install -y vim net-tools libasound2-dev
|
|
|
|
RUN pip install funasr==1.2.6 openai-whisper
|
|
|
|
ADD . /root/
|
|
ADD nltk_data.tar.gz /root/
|
|
RUN cp ./replaced_files/bi_v100/model.py /usr/local/lib/python3.10/site-packages/funasr/models/uniasr/
|
|
RUN cp ./replaced_files/bi_v100/cif_predictor.py /usr/local/lib/python3.10/site-packages/funasr/models/paraformer/
|
|
EXPOSE 80
|
|
ENTRYPOINT ["bash"]
|
|
CMD ["./start_funasr.sh"] |