|
|
@@ -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
|