From 9736f4a286b47f7237d555b0b612c6c0ae1cca74 Mon Sep 17 00:00:00 2001 From: uy/sun Date: Wed, 25 Dec 2024 21:00:48 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E9=80=9A=E8=BF=87=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E8=AE=BE=E7=BD=AE=20frozen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/noneflow.dockerfile | 3 ++- docker/nonetest.dockerfile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/noneflow.dockerfile b/docker/noneflow.dockerfile index daa160a1..29a80976 100644 --- a/docker/noneflow.dockerfile +++ b/docker/noneflow.dockerfile @@ -14,10 +14,11 @@ RUN apt-get update \ # 设置 uv ENV UV_NO_CACHE=1 ENV UV_COMPILE_BYTECODE=1 +ENV UV_FROZEN=1 # Python 依赖 COPY pyproject.toml uv.lock /app/ -RUN uv sync --project /app/ --no-dev --frozen +RUN uv sync --project /app/ --no-dev COPY bot.py .env /app/ COPY src /app/src/ diff --git a/docker/nonetest.dockerfile b/docker/nonetest.dockerfile index 937e1c0a..3618fe35 100644 --- a/docker/nonetest.dockerfile +++ b/docker/nonetest.dockerfile @@ -20,6 +20,7 @@ RUN uv tool install poetry # 设置 uv ENV UV_NO_CACHE=1 ENV UV_COMPILE_BYTECODE=1 +ENV UV_FROZEN=1 # Python 依赖 COPY pyproject.toml uv.lock /app/