Skip to content

Commit

Permalink
build: 不应该保存 cache
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Dec 25, 2024
1 parent bd7bff1 commit df029d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docker/noneflow.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ RUN apt-get update \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*

# 设置 uv
ENV UV_NO_CACHE=1
ENV UV_COMPILE_BYTECODE=1

# Python 依赖
COPY pyproject.toml uv.lock /app/
RUN uv sync --project /app/ --no-dev --frozen --compile-bytecode
RUN uv sync --project /app/ --no-dev --frozen

COPY bot.py .env /app/
COPY src /app/src/
Expand Down
6 changes: 5 additions & 1 deletion docker/nonetest.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ RUN apt-get update \
ENV PATH="${PATH}:/root/.local/bin"
RUN uv tool install poetry

# 设置 uv
ENV UV_NO_CACHE=1
ENV UV_COMPILE_BYTECODE=1

# Python 依赖
COPY pyproject.toml uv.lock /app/
RUN uv sync --project /app/ --no-dev --frozen --compile-bytecode
RUN uv sync --project /app/ --no-dev --frozen

COPY src /app/src/

Expand Down

0 comments on commit df029d6

Please sign in to comment.