fix python path
All checks were successful
Docker Build and Push / docker (push) Successful in 1m18s
All checks were successful
Docker Build and Push / docker (push) Successful in 1m18s
Signed-off-by: Sun Ruoxi <sunruoxi@4paradigm.com>
This commit is contained in:
23
Dockerfile
23
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"]
|
||||
|
||||
Reference in New Issue
Block a user