C
C#2y ago
khamas

❔ publish blazor wasm app as docker image with nginx base

I create a dockerfile, and create a docker publish configuration, but it tells me that I need to enable docker support for my wasm project. Is there a way to modify the .csproj file directly to enable it? thanks
3 Replies
Sossenbinder
Sossenbinder2y ago
Hmm, not sure, but the Docker integration for VS does add a Dockerfile for you including these csproj entries in PropertyGroup: <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerfileContext>.</DockerfileContext> But I am not sure whether this is required for publishing catthinking you've got a Dockerfile, can't you just build and push it yourself?
khamas
khamas2y ago
there is no option to add docker support... I just hosted the wasm app in an empty web project and published that instead
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts