Browse Source

修改部署文件

xueyiming 2 weeks ago
parent
commit
780c7682e8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -3,7 +3,8 @@ FROM python:3.12-slim
 WORKDIR /app
 
 COPY requirements.txt ./
-RUN pip install --no-cache-dir -r requirements.txt
+RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
+    && pip install --no-cache-dir -r requirements.txt
 
 COPY app ./app
 COPY .env ./.env