From 80d82890a2d905fbff2fd9814b647f5b7894a654 Mon Sep 17 00:00:00 2001 From: Sun Ruoxi Date: Wed, 15 Jul 2026 11:09:57 +0800 Subject: [PATCH] fix python path Signed-off-by: Sun Ruoxi --- Dockerfile | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8482f54..8e6ac17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,31 +2,10 @@ FROM harbor.4pd.io/modelhubxc/enginex-metax/vllm:0.9.1 WORKDIR /workspace -RUN cat > /etc/apt/sources.list <<'EOF' -deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse -deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse -deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse -deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse -EOF - -RUN mkdir -p /tmp && \ - chmod 1777 /tmp && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - python3-pip && \ - rm -rf /var/lib/apt/lists/* - # 复制 requirements.txt 并安装 Python 依赖 COPY requirements.txt . -RUN pip install --no-deps --no-cache-dir -r requirements.txt +RUN /opt/conda/bin/pip install --no-deps --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"]