瀏覽代碼

修改部署文件

xueyiming 2 周之前
父節點
當前提交
c9b765068c
共有 1 個文件被更改,包括 3 次插入3 次删除
  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