Skip to content

Commit 1b3e91c

Browse files
Copilotdanroth27
andcommitted
Fix Docker support section - applies to Blazor Web App, not WebAssembly
Co-authored-by: danroth27 <1874516+danroth27@users.noreply.github.com>
1 parent fea86fc commit 1b3e91c

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

release-notes/11.0/preview/preview1/aspnetcore.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here's a summary of what's new in ASP.NET Core in this preview release:
1717
- [`IHostedService` support in Blazor WebAssembly](#ihostedservice-support-in-blazor-webassembly)
1818
- [Environment variables in Blazor WebAssembly configuration](#environment-variables-in-blazor-webassembly-configuration)
1919
- [Opt-in metrics and tracing for Blazor WebAssembly](#opt-in-metrics-and-tracing-for-blazor-webassembly)
20-
- [Docker support in Blazor WebAssembly template](#docker-support-in-blazor-webassembly-template)
20+
- [Docker support in Blazor Web App template](#docker-support-in-blazor-web-app-template)
2121
- [FileContentResult support in OpenAPI](#filecontentresult-support-in-openapi)
2222
- [`IOutputCachePolicyProvider` for custom output caching](#ioutputcachepolicyprovider-for-custom-output-caching)
2323
- [`TimeProvider` in ASP.NET Core Identity](#timeprovider-in-aspnet-core-identity)
@@ -414,23 +414,17 @@ builder.Services.AddOpenTelemetry()
414414

415415
Applications can export telemetry data to observability platforms for analysis, helping developers understand client-side performance characteristics and diagnose issues in production.
416416

417-
## Docker support in Blazor WebAssembly template
417+
## Docker support in Blazor Web App template
418418

419-
The Blazor WebAssembly project template now includes Docker support out of the box. New projects include a Dockerfile and .dockerignore file configured for optimal container deployment.
419+
The Blazor Web App project template now supports the "Enable Docker" option in Visual Studio and other IDEs. This brings the Blazor Web App template in line with other ASP.NET Core project templates like MVC and Web API, which already had Docker support enabled.
420420

421-
The generated Dockerfile:
421+
When creating a new Blazor Web App project, you can now:
422422

423-
- Uses multi-stage builds for optimized image size
424-
- Includes proper caching for NuGet packages and build artifacts
425-
- Configures the app to run in a production-ready container
423+
- Select "Enable Docker" during project creation in Visual Studio
424+
- Automatically generate a Dockerfile and .dockerignore configured for the Blazor Web App
425+
- Use Docker Compose support for multi-container scenarios
426426

427-
```bash
428-
# Build and run with Docker
429-
docker build -t myblazorapp .
430-
docker run -p 8080:8080 myblazorapp
431-
```
432-
433-
This makes it easier to containerize Blazor WebAssembly applications and deploy them to container orchestration platforms like Kubernetes or Azure Container Apps.
427+
This makes it easier to containerize Blazor Web App applications and deploy them to container orchestration platforms like Kubernetes or Azure Container Apps.
434428

435429
## FileContentResult support in OpenAPI
436430

0 commit comments

Comments
 (0)