Signed-off-by: Sun Ruoxi <sunruoxi@4paradigm.com>
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -2,6 +2,22 @@ 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-cache-dir -r requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user