Containerized Deployments for your SPA and API
summary
Demo uses Vue CLI and dotnet CLI to scaffold apps, then shows concrete Dockerfiles including multi-stage Dockerfiles and an nginx runtime to produce small images. Live demo builds and runs SPA and API containers, hits a CORS failure when using subdomains, and resolves it by routing both services through a Kubernetes ingress so the SPA can call /api without CORS. Tradeoffs: one-container simplifies single-host deploys but prevents independent scaling; two-container+ingress enables independent scaling and environment promotion.
AI-written summary · about
chapters (12)
- 0:00Introduction to deployments
- 1:25What is Docker
- 5:57Docker ecosystem overview
- 6:40Local development setup
- 10:16Dockerizing the apps
- 21:32Linking containers together
- 23:26One container one domain
- 29:34Two containers two domains
- 36:23Two containers one domain
- 42:27Kubernetes ingress controller
- 44:15Server rendered SPAs
- 47:23Choosing the right approach
related talks
31mContainerized Deployments for your SPA and API
01h 15mContainerize .NET Apps and deploy to Kubernetes
35mBuilding Apps with Containers, Functions and Managed Services
35mDeploying Your Angular Apps
58mMulti-container applications with .NET Core on Kubernetes
01h 03mScaling Docker Containers using Kubernetes and Azure Container Service
35mBuilding Apps with Containers, Functions and Managed Services
52mBring your ASP.NET Core solutions to Kubernetes in Azure
