25 lines
1.2 KiB
Docker
25 lines
1.2 KiB
Docker
FROM r200-8f_xmlir-ubuntu_2004_x86_64:v0.27
|
|
|
|
WORKDIR /root
|
|
|
|
COPY requirements.txt /root
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
RUN source /root/miniconda/etc/profile.d/conda.sh && conda activate python38_torch201_cuda && \
|
|
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
RUN source /root/miniconda/etc/profile.d/conda.sh && conda activate python38_torch201_cuda && \
|
|
pip uninstall -y boto3 botocore
|
|
ADD xpytorch-cp38-torch201-ubuntu2004-x64-socket.run /root/
|
|
RUN source /root/miniconda/etc/profile.d/conda.sh && conda activate python38_torch201_cuda && \
|
|
./xpytorch-cp38-torch201-ubuntu2004-x64-socket.run
|
|
|
|
RUN source /root/miniconda/etc/profile.d/conda.sh && conda activate python38_torch201_cuda && \
|
|
pip install torchaudio==2.0.2 funasr==1.2.6 openai-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
ADD . /root/
|
|
ADD nltk_data.tar.gz /root/
|
|
RUN tar -xzvf nltk_data.tar.gz
|
|
RUN cp ./replaced_files/klx_r200_8f/cif_predictor.py /root/miniconda/envs/python38_torch201_cuda/lib/python3.8/site-packages/funasr/models/bicif_paraformer/
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/bin/bash", "-c", "source /root/miniconda/etc/profile.d/conda.sh && conda activate python38_torch201_cuda && ./start_funasr.sh"] |