OS: All
Build Version: 20221014.1
.NET Version: 7.0.100-rc.2.22477.23
Repro Steps:
- Create and open a .NET 7.0 MVC project in VS Code.
- Add Docker files to this project (Linux Container) -> Right click the "Dockerfile" file -> Select "Build Image...".
- Check whether succeeds to build image of the "Dockerfile" file.
Expect:
Succeed to build image of the "Dockerfile" file.
Actual:
Fail to build image of the "Dockerfile" file.

More Info:
- This issue only reproduces with the default Docker image "7.0-focal".
- This issue does not reproduce with other images "7.0" and "7.0-alpine".
- This issue does not reproduce for a .NET 6.0 project.