From 0605876155eeddf0d1b2e714fc0aa8840c5adaa8 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 9 Jul 2026 22:50:40 +0200 Subject: [PATCH] Refactored docker file --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) 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