File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ RUN apt-get update && apt-get install -y make
44
55WORKDIR /sdk
66
7- COPY Makefile pyproject.toml vars.mk ./
7+ COPY Makefile pyproject.toml vars.mk uv.lock ./
8+
9+ # Run before `COPY src src` to cache dependencies for faster iterative builds
10+ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip make docker-deps
811
912COPY .git .git
1013COPY src src
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ include vars.mk
22
33.DEFAULT_GOAL := all
44
5- .PHONY : build clean cov default dev docs ensure-uv fmt fix install it lint test uninstall version help
5+ .PHONY : build clean cov default dev docker-deps docs ensure-uv fmt fix install it lint test uninstall version help
66
77all : dev test lint build
88
@@ -32,6 +32,12 @@ cov-xml: dev
3232dev : ensure-uv
3333 $(UV ) pip install -e .
3434
35+ docker-deps : ensure-uv
36+ # Sync given the `uv.lock` file
37+ # --frozen : assert that the lock file exists
38+ # --no-install-project : do not install the project itself, but install its dependencies
39+ $(UV ) sync --frozen --no-install-project
40+
3541docs : ensure-uv
3642 $(MAKE ) -C ./docs
3743
You can’t perform that action at this time.
0 commit comments