Fix Docker Build Failed with BuildKit Cache Issue - Mac Git Clone Fails: Repository Not Found Fix-Fix Windows Security Misconfiguration

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.