BG5 commited on
Commit
086b7a1
·
verified ·
1 Parent(s): c6212dc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -16,8 +16,9 @@ RUN apt-get update && apt-get install -y \
16
  # 创建 python 的符号链接
17
  RUN ln -s /usr/bin/python3.11 /usr/bin/python
18
 
19
- # 安装 pip
20
- RUN wget https://bootstrap.pypa.io/get-pip.py && python3.11 get-pip.py && rm get-pip.py
 
21
 
22
  # # 创建非特权用户
23
  RUN useradd -m -s /bin/bash appuser
 
16
  # 创建 python 的符号链接
17
  RUN ln -s /usr/bin/python3.11 /usr/bin/python
18
 
19
+ # 使用系统包管理器安装 pip
20
+ RUN apt-get update && apt-get install -y python3-pip \
21
+ && apt-get clean
22
 
23
  # # 创建非特权用户
24
  RUN useradd -m -s /bin/bash appuser