Closes #20470 Before this PR we used to scan the entire build context when there were exclusions in the .dockerignore file (paths that started with !). Now we only traverse into subdirs when one of the exclusions starts with that dir path. Signed-off-by: Doug Davis <dug@us.ibm.com> Upstream-commit: 842b8d8784b132279003580eedd0e9c12b885815 Component: engine