File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2
2
FROM 506610466/cuda:12.2.2-devel-ubuntu20.04-uv
3
3
# 从基础镜像开始构建,加快构建速度
4
4
# 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/*
6
6
COPY ./ /gpt_server
7
7
WORKDIR /gpt_server
8
8
# RUN uv sync && uv cache clean
9
9
ENV UV_HTTP_TIMEOUT=120 CUDA_HOME=/usr/local/cuda-12.2
10
10
ENV PATH=$CUDA_HOME/bin:$PATH
11
11
ENV LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
12
+ RUN uv --version
12
13
RUN uv venv --seed && uv sync -v && uv cache clean && \
13
14
echo '[[ -f .venv/bin/activate ]] && source .venv/bin/activate' >> ~/.bashrc
14
15
ENV PATH=/gpt_server/.venv/bin:$PATH
You can’t perform that action at this time.
0 commit comments