Skip to content

Commit 4d3ff59

Browse files
committed
添加支持uv版本
1 parent fdd8e92 commit 4d3ff59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
FROM 506610466/cuda:12.2.2-devel-ubuntu20.04-uv
33
# 从基础镜像开始构建,加快构建速度
44
# FROM 506610466/gpt_server:base
5-
RUN apt-get update -y && apt-get install -y numactl build-essential && rm -rf /var/lib/apt/lists/*
5+
RUN uv self update && apt-get update -y && apt-get install -y numactl build-essential && rm -rf /var/lib/apt/lists/*
66
COPY ./ /gpt_server
77
WORKDIR /gpt_server
88
# RUN uv sync && uv cache clean
99
ENV UV_HTTP_TIMEOUT=120 CUDA_HOME=/usr/local/cuda-12.2
1010
ENV PATH=$CUDA_HOME/bin:$PATH
1111
ENV LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
12+
RUN uv --version
1213
RUN uv venv --seed && uv sync -v && uv cache clean && \
1314
echo '[[ -f .venv/bin/activate ]] && source .venv/bin/activate' >> ~/.bashrc
1415
ENV PATH=/gpt_server/.venv/bin:$PATH

0 commit comments

Comments
 (0)