Anchor relative Dockerfile path to build context #273

Merged
didericis merged 1 commits from fix/macos-container-relative-dockerfile into main 2026-06-25 03:46:52 -04:00
Collaborator

Summary

container build resolves -f relative to the current working directory, not the build context, so image builds failed whenever invoked from any cwd other than the repo root. build_image now anchors a relative Dockerfile path to the build context before passing it to container build. Absolute paths are left untouched.

Adds a unit test asserting the relative -f is joined to the context.

## Summary `container build` resolves `-f` relative to the current working directory, not the build context, so image builds failed whenever invoked from any cwd other than the repo root. `build_image` now anchors a relative Dockerfile path to the build context before passing it to `container build`. Absolute paths are left untouched. Adds a unit test asserting the relative `-f` is joined to the context.
didericis approved these changes 2026-06-25 03:24:04 -04:00
didericis force-pushed fix/macos-container-relative-dockerfile from f289149970 to 9537b1d5b5 2026-06-25 03:24:14 -04:00 Compare
didericis added 1 commit 2026-06-25 03:27:52 -04:00
fix(macos-container): anchor relative Dockerfile path to build context
test / unit (pull_request) Successful in 33s
test / integration (pull_request) Successful in 17s
lint / lint (push) Successful in 1m49s
test / unit (push) Successful in 33s
test / integration (push) Successful in 18s
Update Quality Badges / update-badges (push) Successful in 1m19s
0f72843150
`container build` resolves -f relative to the current working directory,
not the build context, so builds failed from any cwd other than the repo
root. Anchor a relative Dockerfile to the context before passing it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
didericis force-pushed fix/macos-container-relative-dockerfile from 9537b1d5b5 to 0f72843150 2026-06-25 03:27:52 -04:00 Compare
didericis merged commit 0f72843150 into main 2026-06-25 03:46:52 -04:00
Sign in to join this conversation.