Skip to content

Commit 37beb8f

Browse files
committed
复原dockerfile 以减少网络拉取时间
1 parent 59e5e42 commit 37beb8f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# FROM docker.1ms.run/506610466/cuda:12.2.0-runtime-ubuntu20.04-uv
2-
FROM 506610466/cuda:12.2.0-runtime-ubuntu20.04-uv
2+
# FROM 506610466/cuda:12.2.0-runtime-ubuntu20.04-uv
33
# 从基础镜像开始构建,加快构建速度
4-
# FROM 506610466/gpt_server:base
5-
RUN apt update -y && apt install -y build-essential && rm -rf /var/lib/apt/lists/*
4+
FROM 506610466/gpt_server:base
65
COPY ./ /gpt_server
76
WORKDIR /gpt_server
87
RUN uv sync && uv cache clean
9-
ENV PATH=/gpt_server/.venv/bin:$PATH
108
# RUN uv venv --seed && uv sync && uv cache clean && \
119
# echo '[[ -f .venv/bin/activate ]] && source .venv/bin/activate' >> ~/.bashrc
1210

0 commit comments

Comments
 (0)