dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.59k stars 10.06k forks source link

Add Docker support to Blazor Web App template #49889

Open danroth27 opened 1 year ago

danroth27 commented 1 year ago

We should have the "Enable Docker" option on the Blazor Web App template.

codymullins commented 1 year ago

@danroth27 would this also affect adding docker support to a template after creation? I created a Blazor Web App, right clicked on the project, clicked add docker support. App won't run, indicates the Client\....\wwwroot wasn't found. I assume this is related, but if not, perhaps it's another issue.

danroth27 commented 1 year ago

@danroth27 would this also affect adding docker support to a template after creation? I created a Blazor Web App, right clicked on the project, clicked add docker support. App won't run, indicates the Client\....\wwwroot wasn't found. I assume this is related, but if not, perhaps it's another issue.

@codymullins This might be an issue with the Docker tooling Visual Studio. Could you please open a Visual Studio feedback ticket for this?

codymullins commented 1 year ago

Will do. Do you happen to have a sample of a working .NET 8 Blazor Web App with Docker so I can share that and compare to what is auto-generated?

danroth27 commented 1 year ago

Will do. Do you happen to have a sample of a working .NET 8 Blazor Web App with Docker so I can share that and compare to what is auto-generated?

I don't have a .NET 8 version, but you could try comparing with a Docker enabled ASP.NET Core hosted Blazor WebAssembly app using .NET 7. Using VS 17.7 create a new Blazor WebAssembly App with the ASP.NET Core hosted and Docker options enabled. That should work.

ghost commented 11 months ago

Thanks for contacting us.

We're moving this issue to the .NET 9 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

v-elenafeng commented 8 months ago

@mkArtakMSFT Would like to know if we plan to support this for .NET 9? Otherwise, we will look for it when we get to .NET 10.

danroth27 commented 8 months ago

@mkArtakMSFT Would like to know if we plan to support this for .NET 9? Otherwise, we will look for it when we get to .NET 10.

@v-elenafeng We don't plan to add this template option for .NET 9, but you should be able to Add Docker a Blazor Web App after the project is created using the Visual Studio tooling: Right click on project > Add > Docker Support.