Explorar o código

修改部署文件

xueyiming hai 2 semanas
pai
achega
c9b765068c
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Dockerfile

+ 3 - 3
Dockerfile

@@ -1,10 +1,10 @@
-FROM python:3.12-slim
+FROM registry.cn-hangzhou.aliyuncs.com/stuuudy/python:3.11-slim AS base
 
 WORKDIR /app
 
 COPY requirements.txt ./
-RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
-    && pip install --no-cache-dir -r requirements.txt
+RUN pip install --no-cache-dir --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/ \
+    && pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
 
 COPY app ./app
 COPY .env ./.env