add metax sentence-transformers engine

Signed-off-by: Sun Ruoxi <sunruoxi@4paradigm.com>
This commit is contained in:
2026-04-14 19:01:27 +08:00
parent 281b4ba22b
commit fb4f401ccd
4 changed files with 222 additions and 1 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM git.modelhub.org.cn:9443/enginex-metax/vllm:0.9.1
WORKDIR /workspace
# 复制 requirements.txt 并安装 Python 依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 复制 server.py 到 workspace
COPY server.py /workspace/
# 暴露端口
EXPOSE 8000
# 启动服务
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]