install frontend dependencies before the dotnet build
This commit is contained in:
@@ -5,6 +5,10 @@ WORKDIR /src
|
||||
RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY ./src/ .
|
||||
|
||||
# Install frontend dependencies before dotnet build
|
||||
RUN npm install --prefix ./GreenHome.Web
|
||||
|
||||
RUN dotnet restore --verbosity detailed
|
||||
RUN dotnet publish -c Release -o /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user