Skip to content

Commit a63d235

Browse files
Fix Dockerfile (headroomlabs-ai#2337)
## Description Optimize the Docker build cache to ensure that Rust/Cargo dependencies are cached correctly when installing Python packages, thereby speeding up subsequent image builds. Closes # ## Type of Change - [ ] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [x] Performance improvement - [ ] Code refactoring (no functional changes) ## Changes Made - Dockersfile ## Review Readiness - [ ] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] I did **not** edit `CHANGELOG.md` — it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this) Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
1 parent cf5fa64 commit a63d235

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ COPY headroom/ headroom/
4949

5050
ARG HEADROOM_EXTRAS=proxy,code
5151
RUN --mount=type=cache,target=/root/.cache/uv \
52-
--mount=type=cache,target=/root/.cargo/registry \
52+
--mount=type=cache,target=/usr/local/cargo/registry \
53+
--mount=type=cache,target=/usr/local/cargo/git \
5354
--mount=type=cache,target=/build/target \
5455
uv pip install --system ".[${HEADROOM_EXTRAS}]"
5556

0 commit comments

Comments
 (0)