1 | FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim AS base
|
---|
2 | WORKDIR /app
|
---|
3 |
|
---|
4 | FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
|
---|
5 | WORKDIR /src
|
---|
6 | COPY ["HeuristicLab/3.3/", "HeuristicLab/3.3/"]
|
---|
7 | COPY ["HeuristicLab.CommandLineInterface/", "HeuristicLab.CommandLineInterface/"]
|
---|
8 | COPY ["HeuristicLab.Common/3.3/", "HeuristicLab.Common/3.3/"]
|
---|
9 | COPY ["HeuristicLab.PluginInfrastructure/3.3/", "HeuristicLab.PluginInfrastructure/3.3/"]
|
---|
10 | COPY ["HeuristicLab.DynamicAssemblyTestApp/", "HeuristicLab.DynamicAssemblyTestApp/"]
|
---|
11 | COPY ["HeuristicLab.Core/3.3/", "HeuristicLab.Core/3.3/"]
|
---|
12 | COPY ["HeuristicLab.Persistence/3.3/", "HeuristicLab.Persistence/3.3/"]
|
---|
13 | COPY ["HeuristicLab.Tracing/3.3/", "HeuristicLab.Tracing/3.3/"]
|
---|
14 | COPY ["HeuristicLab.Common.Resources/3.3/", "HeuristicLab.Common.Resources/3.3/"]
|
---|
15 | COPY ["HeuristicLab.Collections/3.3/", "HeuristicLab.Collections/3.3/"]
|
---|
16 | COPY ["HeuristicLab.Optimization/3.3/", "HeuristicLab.Optimization/3.3/"]
|
---|
17 | COPY ["HeuristicLab.Data/3.3/", "HeuristicLab.Data/3.3/"]
|
---|
18 | COPY ["HeuristicLab.Parameters/3.3/", "HeuristicLab.Parameters/3.3/"]
|
---|
19 | COPY ["HeuristicLab.Operators/3.3/", "HeuristicLab.Operators/3.3/"]
|
---|
20 | RUN dotnet restore "HeuristicLab/3.3/HeuristicLab-3.3.csproj"
|
---|
21 | WORKDIR "/src/HeuristicLab/3.3"
|
---|
22 | RUN dotnet build "HeuristicLab-3.3.csproj" -c Release -o /app
|
---|
23 |
|
---|
24 | FROM build AS publish
|
---|
25 | RUN dotnet publish "HeuristicLab-3.3.csproj" -c Release -o /app
|
---|
26 |
|
---|
27 | FROM base AS final
|
---|
28 | WORKDIR /app
|
---|
29 | COPY --from=publish /app .
|
---|
30 | ENTRYPOINT ["dotnet", "HeuristicLab-3.3.dll"]
|
---|