diff --git a/Dockerfile b/Dockerfile index f7221bb..09c58be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,13 @@ RUN mkdir -p wwwroot && \ # STAGE 2: Restore, Build, & Publish .NET 10 Application # ========================================================================= FROM mcr.microsoft.com/dotnet/sdk:10.0 AS dotnet-builder + +# Install Node.js & Yarn in the .NET builder stage to support MSBuild frontend compilation targets +RUN apt-get update && apt-get install -y curl && \ + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y nodejs && \ + npm install -g yarn + WORKDIR /src # Copy the XML-based solution (.slnx) and project file for package restoration