BG5 commited on
Commit
f1bb342
·
verified ·
1 Parent(s): 1641cc1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -5
Dockerfile CHANGED
@@ -10,17 +10,13 @@ RUN apt-get update && apt-get install -y \
10
  gnupg2 \
11
  software-properties-common \
12
  && apt-get update \
13
- && apt-get install -y python3.11 python3.11-distutils python3.11-venv \
14
  && apt-get install -y python3-pip \
15
  && apt-get clean
16
 
17
  # 创建 python 的符号链接
18
  RUN ln -s /usr/bin/python3.11 /usr/bin/python
19
- # 创建虚拟环境并安装 pip
20
- RUN python3.11 -m venv /venv
21
 
22
- # 激活虚拟环境并安装 requirements.txt 中的包
23
- RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  # # 创建非特权用户
26
  RUN useradd -m -s /bin/bash appuser
 
10
  gnupg2 \
11
  software-properties-common \
12
  && apt-get update \
13
+ && apt-get install -y python3.11 python3.11-venv \
14
  && apt-get install -y python3-pip \
15
  && apt-get clean
16
 
17
  # 创建 python 的符号链接
18
  RUN ln -s /usr/bin/python3.11 /usr/bin/python
 
 
19
 
 
 
20
 
21
  # # 创建非特权用户
22
  RUN useradd -m -s /bin/bash appuser