Skip to content

Commit 8eedb1c

Browse files
committed
Updates Dockerfile for WebApp
1 parent c899ce4 commit 8eedb1c

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
-
1717
name: Checkout
1818
uses: actions/checkout@v3
19+
with:
20+
submodules: recursive
1921
-
2022
name: Login to Docker Hub
2123
uses: docker/login-action@v2

DocIntel.WebApp/Dockerfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,33 @@ EXPOSE 443
88

99
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
1010
WORKDIR /src
11+
12+
# Copying Library
1113
COPY ["./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/"]
1219
COPY ["./DocIntel.Core/DocIntel.Core.csproj", "./DocIntel.Core/"]
13-
COPY ["./DocIntel.Integrations/DocIntel.Integrations.csproj", "./DocIntel.Integrations/"]
20+
1421
COPY ["./DocIntel.WebApp/DocIntel.WebApp.csproj", "./DocIntel.WebApp/"]
1522
COPY ["./DocIntel.AdminConsole/DocIntel.AdminConsole.csproj", "./DocIntel.AdminConsole/"]
1623
COPY ["./DocIntel.WebApp/package.json", "./DocIntel.WebApp/"]
24+
25+
# Install nodeJs 16
1726
RUN apt-get update && apt-get install curl build-essential autoconf libpng-dev python2 -y --no-install-recommends
1827
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
1928
RUN apt-get update && apt-get install -y nodejs
20-
# RUN npm install --global yarn
29+
30+
# Let's restore
2131
WORKDIR /src/DocIntel.WebApp/
2232
RUN npm install
2333
WORKDIR /src
2434
RUN dotnet restore "./DocIntel.WebApp/DocIntel.WebApp.csproj"
2535
RUN dotnet restore "./DocIntel.AdminConsole/DocIntel.AdminConsole.csproj"
36+
37+
# Let's build
2638
COPY . .
2739
WORKDIR /src/DocIntel.WebApp
2840
RUN dotnet build "DocIntel.WebApp.csproj" -c Release -o /app/build

0 commit comments

Comments
 (0)