Skip to content

Commit c9d5875

Browse files
authored
Update Dockerfile
1 parent 6039a75 commit c9d5875

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

ldm/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#tag:latest
2-
31
# 基础镜像
42
FROM pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime
53

@@ -10,8 +8,8 @@ RUN apt-get update && apt-get install -y \
108
apt-get clean && \
119
rm -rf /var/lib/apt/lists/*
1210

13-
# 安装 Python 3.8 和 pip
14-
RUN apt-get update && apt-get install -y python3.8 python3-pip && \
11+
# 安装 Python 3.8、pippython3-venv
12+
RUN apt-get update && apt-get install -y python3.8 python3-pip python3-venv && \
1513
python3.8 -m pip install --upgrade pip
1614

1715
# 创建名为 ldm 的 Python 虚拟环境

0 commit comments

Comments
 (0)