diff --git a/Dockerfile b/Dockerfile index c66e3c7..08744a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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