Skip to content

Commit 8cbad5a

Browse files
fix: check uv.lock
1 parent 0f19962 commit 8cbad5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ COPY --from=ghcr.io/astral-sh/uv:0.7.8 /uv /uvx /bin/
2424
COPY frontend/dist ${UI_HOME}/dist
2525

2626
# Install dependencies
27-
RUN --mount=type=cache,target=/root/.cache/uv \
27+
RUN test -f "./uv.lock" && \
28+
--mount=type=cache,target=/root/.cache/uv \
2829
--mount=type=bind,source=backend/uv.lock,target=uv.lock \
2930
--mount=type=bind,source=backend/pyproject.toml,target=pyproject.toml \
3031
uv sync --frozen --no-install-project

0 commit comments

Comments
 (0)