diff --git a/Dockerfile b/Dockerfile index aac556e..a0c58cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,8 +25,9 @@ RUN apt-get update && apt-get install -y \ # 复制requirements文件 COPY requirements.txt . -# 安装Python依赖 -RUN pip install --no-cache-dir -r requirements.txt +# 升级pip并安装Python依赖 +RUN pip install --upgrade pip && \ + pip install --no-cache-dir -r requirements.txt # 复制项目文件 COPY . . diff --git a/requirements.txt b/requirements.txt index ea065a7..64bb418 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,6 +18,9 @@ scikit-learn>=1.3.0 # Database PyMySQL>=1.1.0 +SQLAlchemy>=2.0.0 +pymysql[rsa]>=1.1.0 +mysql-connector-python>=8.0.33 cryptography>=41.0.0 # Configuration