This commit is contained in:
aaron 2025-04-29 11:55:52 +08:00
parent 51a3ea5e2f
commit 489c17db66

View File

@ -1,4 +1,4 @@
FROM python:3.13-slim as builder FROM python:3.10-slim as builder
# 安装系统依赖 # 安装系统依赖
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
@ -23,7 +23,7 @@ RUN pip install --upgrade pip && \
pip wheel --wheel-dir=/build/wheels -r requirements.txt pip wheel --wheel-dir=/build/wheels -r requirements.txt
# 第二阶段:最终镜像 # 第二阶段:最终镜像
FROM python:3.13-slim FROM python:3.10-slim
# 安装运行时依赖 # 安装运行时依赖
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \