@@ -8,21 +8,33 @@ EXPOSE 443
88
99FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
1010WORKDIR /src
11+
12+ # Copying Library
1113COPY ["./Library" , "./Library" ]
14+
15+ # Copying dependencies
16+ RUN mkdir -p ./synsharp/Synsharp.Telepath/
17+ COPY ["./synsharp/Synsharp.Telepath/Synsharp.Telepath.csproj" , "./synsharp/Synsharp.Telepath/" ]
18+ COPY ["./DocIntel.Services.Scraper/DocIntel.Services.Scraper.csproj" , "./DocIntel.Services.Scraper/" ]
1219COPY ["./DocIntel.Core/DocIntel.Core.csproj" , "./DocIntel.Core/" ]
13- COPY [ "./DocIntel.Integrations/DocIntel.Integrations.csproj" , "./DocIntel.Integrations/" ]
20+
1421COPY ["./DocIntel.WebApp/DocIntel.WebApp.csproj" , "./DocIntel.WebApp/" ]
1522COPY ["./DocIntel.AdminConsole/DocIntel.AdminConsole.csproj" , "./DocIntel.AdminConsole/" ]
1623COPY ["./DocIntel.WebApp/package.json" , "./DocIntel.WebApp/" ]
24+
25+ # Install nodeJs 16
1726RUN apt-get update && apt-get install curl build-essential autoconf libpng-dev python2 -y --no-install-recommends
1827RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
1928RUN apt-get update && apt-get install -y nodejs
20- # RUN npm install --global yarn
29+
30+ # Let's restore
2131WORKDIR /src/DocIntel.WebApp/
2232RUN npm install
2333WORKDIR /src
2434RUN dotnet restore "./DocIntel.WebApp/DocIntel.WebApp.csproj"
2535RUN dotnet restore "./DocIntel.AdminConsole/DocIntel.AdminConsole.csproj"
36+
37+ # Let's build
2638COPY . .
2739WORKDIR /src/DocIntel.WebApp
2840RUN dotnet build "DocIntel.WebApp.csproj" -c Release -o /app/build
0 commit comments