.dockerignore controls which files and directories Docker excludes from the build context. This prevents local build artifacts from being copied into an image when a Dockerfile copies the current folder. section 13.3.1
Typical .NET exclusions
A .NET service can exclude /bin/, /obj/, and /.vscode/. These directories contain local build or editor artifacts that do not belong in the container image. section 13.3.1
Listing 13.3 Contents of .dockerignore
/bin/ /obj/ # Ignore any Visual Studio Code-specific artifacts #1 /.vscode/
Inspect the complete .dockerignore example for the AsciiArtSvc service. section 13.3.1



