-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (22 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["Honeydew/Honeydew.csproj", "Honeydew/"]
COPY ["Honeydew.DesignSmellsDetection/Honeydew.DesignSmellsDetection.csproj", "Honeydew.DesignSmellsDetection/"]
COPY ["Honeydew.Extractors/Honeydew.Extractors.csproj", "Honeydew.Extractors/"]
COPY ["Honeydew.Models/Honeydew.Models.csproj", "Honeydew.Models/"]
COPY ["DxWorks.ScriptBee.Plugins.Honeydew/DxWorks.ScriptBee.Plugins.Honeydew.csproj", "DxWorks.ScriptBee.Plugins.Honeydew/"]
COPY ["Honeydew.Models.CSharp/Honeydew.Models.CSharp.csproj", "Honeydew.Models.CSharp/"]
COPY ["Honeydew.Models.VisualBasic/Honeydew.Models.VisualBasic.csproj", "Honeydew.Models.VisualBasic/"]
COPY ["Honeydew.Extractors.CSharp/Honeydew.Extractors.CSharp.csproj", "Honeydew.Extractors.CSharp/"]
COPY ["Honeydew.Extractors.Dotnet/Honeydew.Extractors.Dotnet.csproj", "Honeydew.Extractors.Dotnet/"]
COPY ["Honeydew.Extractors.VisualBasic/Honeydew.Extractors.VisualBasic.csproj", "Honeydew.Extractors.VisualBasic/"]
RUN dotnet restore "Honeydew/Honeydew.csproj"
COPY . .
WORKDIR "/src/Honeydew"
RUN dotnet build "Honeydew.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Honeydew.csproj" -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Honeydew.dll"]