Anchor relative Dockerfile path to build context #273
Reference in New Issue
Block a user
Delete Branch "fix/macos-container-relative-dockerfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
container buildresolves-frelative to the current working directory, not the build context, so image builds failed whenever invoked from any cwd other than the repo root.build_imagenow anchors a relative Dockerfile path to the build context before passing it tocontainer build. Absolute paths are left untouched.Adds a unit test asserting the relative
-fis joined to the context.f289149970to9537b1d5b59537b1d5b5to0f72843150