❔ 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
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 you've got a Dockerfile, can't you just build and push it yourself?
there is no option to add docker support...
I just hosted the wasm app in an empty web project and published that instead
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.