Skip to content

Commit 4d74073

Browse files
committed
修复docker file
1 parent 619e5fb commit 4d74073

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

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

1314
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)