Skip to content

Commit

Permalink
build: 通过环境变量设置 frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Dec 25, 2024
1 parent df029d6 commit 9736f4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/noneflow.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
1 change: 1 addition & 0 deletions docker/nonetest.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 9736f4a

Please sign in to comment.