The reason you see this error is because for SPA projects, csproj contains commands to follow the steps defined in package.json, to create the package (ng build, webpack, etc.). And this requires Node to be INSIDE the build container, which needs to be added explicitly. You will need to make sure that the version of the node that you are using in the container will work with the assembly sample of your choice. In most cases, this should not be a problem, but in the case, at least, you now know.
You will need to add the following to the Docker file after building the dotnet and before the dotnet steps are published, as shown below. My example uses node 10.13, because it supports the build image that we extract to deploy Azure Container.
RUN dotnet build ...
source share