Browse Source

修改docker配置文件

locky 2 weeks ago
parent
commit
c977f6f0a8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -2,11 +2,12 @@ FROM python:3.9-slim
 
 WORKDIR /app
 
-# 安装系统依赖(mysqlclient 编译需要)
+# 升级 pip,安装 mysqlclient 编译依赖
 RUN apt-get update && apt-get install -y \
     default-libmysqlclient-dev \
     build-essential \
     pkg-config \
+ && pip install --upgrade pip setuptools wheel \
  && rm -rf /var/lib/apt/lists/*
 
 # 复制 requirements