From 23d03ef33bf294f21108b19c1f6803b9f7386f31 Mon Sep 17 00:00:00 2001 From: infinitycat Date: Thu, 3 Apr 2025 12:59:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E7=94=A8uv=E5=8A=A0=E9=80=9F?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe96ac033..e3c58c6c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM python:3.13.2-slim-bookworm +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # 工作目录 WORKDIR /MaiMBot @@ -10,8 +11,9 @@ COPY maim_message /maim_message # 安装依赖 RUN pip install --upgrade pip -RUN pip install -e /maim_message -RUN pip install --upgrade -r requirements.txt +#RUN pip install uv +RUN uv pip install -e /maim_message +RUN uv pip install --upgrade -r requirements.txt # 复制项目代码 COPY . .