Refactored docker file

This commit is contained in:
2026-07-09 22:50:40 +02:00
parent c461a94b88
commit 0605876155
+7
View File
@@ -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