dockerfile add modelscope
This commit is contained in:
parent
75c5f0aa80
commit
11206d8958
@ -19,8 +19,9 @@ RUN sed -i 's|http://deb.debian.org|http://mirrors.aliyun.com|g' /etc/apt/source
|
|||||||
ripgrep \
|
ripgrep \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 全局安装mcp-ripgrep
|
RUN mkdir -p /app/models
|
||||||
RUN npm install -g mcp-ripgrep
|
RUN pip install modelscope -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
RUN modelscope download --model sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 README.md --local_dir /app/models/paraphrase-multilingual-MiniLM-L12-v2
|
||||||
|
|
||||||
# 复制requirements文件并安装Python依赖
|
# 复制requirements文件并安装Python依赖
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
@ -33,7 +34,6 @@ COPY . .
|
|||||||
RUN mkdir -p /app/projects
|
RUN mkdir -p /app/projects
|
||||||
RUN mkdir -p /app/public
|
RUN mkdir -p /app/public
|
||||||
RUN mkdir -p /app/queue_data
|
RUN mkdir -p /app/queue_data
|
||||||
|
|
||||||
# 暴露端口
|
# 暴露端口
|
||||||
EXPOSE 8001
|
EXPOSE 8001
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user