Open Closed

Not getting a working Blazor WASM container image #8018


User avatar
0
carl.hallqvist created
  • ABP Framework version: v8.2.3
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

I struggling to get a containerized Blazor WASM Docker container to work. I have managed to get the other things to work in Kubernetes.

However, I am not sure how to deal with the different Dockerfile.azure, Dockerfile.base and Dockerfile.local , is there any reason to not just have one Dockerfile.base and a regular Dockerfile?

Can you please give me a working example of Dockerfile.base and a Dockerfile which create a Blazor WASM container image? The generated ones from 8.2.3 only create an empty nginx container as far as I can understand.

Thanks

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a screenshot of your solution structure?

    Do you have x.Blazor and x.Blazor.Client projects?

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    carl.hallqvist created

    Sure,

    I did not get the latest template (8.3.1) to work either. Same problem, no Blazor WASM.

    Can you please give me the commands from installing correct ABP CLI version, to create a new template, and working Docker commands ?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The GeoTicket.Blazor is asp net core app now. so you can create a Dockerfile.local for it.

    example:

    FROM mcr.microsoft.com/dotnet/aspnet:8.0
    COPY bin/Release/net8.0/publish/ app/
    WORKDIR /app
    ENTRYPOINT ["dotnet", "GeoTicket.Blazor.dll"]
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    carl.hallqvist created

    Thanks,

    I thought that you used the base to build inside container, and then copy that build into each app / service. But now I understand that that you build on host first.

    Thanks, problem solved :-)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on October 05, 2026, 11:32
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.