Explorar el Código

修改部署文件

xueyiming hace 2 semanas
padre
commit
780c7682e8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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