Files
enginex-metax_c_series-sent…/Dockerfile
T

18 lines
427 B
Docker
Raw Normal View History

2026-07-14 19:01:18 +08:00
FROM harbor.4pd.io/modelhubxc/enginex-metax/vllm:0.9.1
2026-04-14 19:01:27 +08:00
WORKDIR /workspace
# 复制 requirements.txt 并安装 Python 依赖
COPY requirements.txt .
2026-07-15 10:20:02 +08:00
RUN apt update && \
apt install -y python3-pip
RUN pip3 install --no-cache-dir -r requirements.txt
2026-04-14 19:01:27 +08:00
# 复制 server.py 到 workspace
COPY server.py /workspace/
# 暴露端口
EXPOSE 8000
# 启动服务
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]