尝试用uv加速构建
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
FROM python:3.13.2-slim-bookworm
|
FROM python:3.13.2-slim-bookworm
|
||||||
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||||
|
|
||||||
# 工作目录
|
# 工作目录
|
||||||
WORKDIR /MaiMBot
|
WORKDIR /MaiMBot
|
||||||
@@ -10,8 +11,9 @@ COPY maim_message /maim_message
|
|||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
RUN pip install -e /maim_message
|
#RUN pip install uv
|
||||||
RUN pip install --upgrade -r requirements.txt
|
RUN uv pip install -e /maim_message
|
||||||
|
RUN uv pip install --upgrade -r requirements.txt
|
||||||
|
|
||||||
# 复制项目代码
|
# 复制项目代码
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
Reference in New Issue
Block a user