Fix dependencies
This commit is contained in:
@@ -2,20 +2,22 @@ FROM git.modelhub.org.cn:9443/enginex-iluvatar/mr-bi150-4.3.0-x86-ubuntu20.04-py
|
|||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
RUN sed -i 's|deb.debian.org|archive.debian.org|g' /etc/apt/sources.list \
|
RUN set -eux; \
|
||||||
&& sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list \
|
# 1) 把 aliyun 源替换成官方源(避免 403)
|
||||||
&& sed -i 's|buster-updates|buster|g' /etc/apt/sources.list \
|
sed -i -E 's|http://mirrors\.aliyun\.com/ubuntu|http://archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list; \
|
||||||
&& printf 'Acquire::Check-Valid-Until "false";\n' > /etc/apt/apt.conf.d/99no-check-valid \
|
sed -i -E 's|http://mirrors\.aliyun\.com/ubuntu|http://archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list.d/*.list 2>/dev/null || true; \
|
||||||
&& apt-get clean \
|
\
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
# 2) 更新并安装
|
||||||
RUN apt update && apt install -y vim net-tools
|
apt-get update; \
|
||||||
|
apt-get install -y --no-install-recommends vim net-tools ca-certificates; \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ADD . /root/
|
ADD . /root/
|
||||||
ADD nltk_data.tar.gz /root/
|
ADD nltk_data.tar.gz /root/
|
||||||
ENV NLTK_DATA=/root/nltk_data
|
ENV NLTK_DATA=/root/nltk_data
|
||||||
|
|
||||||
COPY requirements.txt /root
|
COPY requirements.txt /root
|
||||||
RUN pip install -r /root/requirements.txt -i https://nexus.4pd.io/repository/pypi-all/simple
|
RUN pip install -r /root/requirements.txt -i https://nexus.4pd.io/repository/pypi-all/simple --extra-index-url https://mirror.sjtu.edu.cn/pypi/web/simple
|
||||||
# Patch files
|
# Patch files
|
||||||
COPY fastapi_funasr.py /root/fastapi_funasr.py
|
COPY fastapi_funasr.py /root/fastapi_funasr.py
|
||||||
COPY ./replaced_files/mr_v100/cif_predictor.py /usr/local/lib/python3.10/site-packages/funasr/models/paraformer/
|
COPY ./replaced_files/mr_v100/cif_predictor.py /usr/local/lib/python3.10/site-packages/funasr/models/paraformer/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
requests
|
requests
|
||||||
wheel
|
wheel
|
||||||
websocket-client
|
websocket-client
|
||||||
pydantic<2.0.0
|
pydantic>=2.0
|
||||||
numpy<2.0
|
numpy<2.0
|
||||||
PYYaml
|
PYYaml
|
||||||
Levenshtein
|
Levenshtein
|
||||||
|
|||||||
Reference in New Issue
Block a user