Refactored docker file
This commit is contained in:
@@ -27,6 +27,13 @@ RUN mkdir -p wwwroot && \
|
|||||||
# STAGE 2: Restore, Build, & Publish .NET 10 Application
|
# STAGE 2: Restore, Build, & Publish .NET 10 Application
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS dotnet-builder
|
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
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy the XML-based solution (.slnx) and project file for package restoration
|
# Copy the XML-based solution (.slnx) and project file for package restoration
|
||||||
|
|||||||
Reference in New Issue
Block a user