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