Documentation is using dockerfiles where none is required in .net 9 even with console apps
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
### Type of issue
Typo
### Description
This should explain how to create a container with the dotnet publish command even with console apps using the package for doing this. It's very confusing and using a dockerfile makes it worse when this should be trivial.
The only use. case where you might want to use a docker file is if you have additional dependencies. I'd suggest you give an example explicitly for playwright since it's a microsoft product which has this very issue.
### Page URL
https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?tabs=windows
### Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/docker/build-container.md
### Document Version Independent Id
58d57b81-4ca6-6536-8788-f212402b41a7
### Article author
@IEvangelist
### Metadata
* ID: 4c7470d2-9a57-7654-e13a-4f912898f7aa
* PlatformId: 1226ae46-7bca-ae68-5abd-5a5463a5f3d3
* Service: **dotnet-fundamentals**
* Sub-service: **dotnet-docker**
[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+58d57b81-4ca6-6536-8788-f212402b41a7)
Contributor guide
Assessment
This issue has not been assessed yet.