install frontend dependencies before the dotnet build

This commit is contained in:
2026-09-03 08:54:39 +03:30
parent 355ba46592
commit 559690e1c5

View File

@@ -5,6 +5,10 @@ WORKDIR /src
RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/*
COPY ./src/ . COPY ./src/ .
# Install frontend dependencies before dotnet build
RUN npm install --prefix ./GreenHome.Web
RUN dotnet restore --verbosity detailed RUN dotnet restore --verbosity detailed
RUN dotnet publish -c Release -o /app RUN dotnet publish -c Release -o /app