Skip to content

Commit

Permalink
fix: Add cache ID to Dockerfile uv mount
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiAwar committed Jan 23, 2025
1 parent 10d0b32 commit ad317a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ RUN mkdir -p /home/dataline/backend
# https://docs.astral.sh/uv/guides/integration/docker/#non-editable-installs
# Mount the lock and pyproject.toml to speed up image build time if these files are not changed
RUN --mount=from=ghcr.io/astral-sh/uv,source=/uv,target=/bin/uv \
--mount=type=cache,target=/root/.cache/uv \
--mount=type=cache,id=uvcache,target=/root/.cache/uv \
--mount=type=bind,source=backend/uv.lock,target=uv.lock \
--mount=type=bind,source=backend/pyproject.toml,target=pyproject.toml \
uv sync --no-dev --frozen --no-install-project
Expand Down

0 comments on commit ad317a5

Please sign in to comment.