1 | #TODO: von linuxbase und windowsbase
|
---|
2 | FROM mcr.microsoft.com/dotnet/core/runtime:3.0-nanoserver-1809 AS runtime
|
---|
3 | WORKDIR /app
|
---|
4 |
|
---|
5 | #FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
|
---|
6 | #WORKDIR /src
|
---|
7 |
|
---|
8 |
|
---|
9 | #COPY ["HeuristicLab/3.3/", "HeuristicLab/3.3/"]
|
---|
10 | #COPY ["HeuristicLab.CommandLineInterface/", "HeuristicLab.CommandLineInterface/"]
|
---|
11 | #COPY ["HeuristicLab.Common/3.3/", "HeuristicLab.Common/3.3/"]
|
---|
12 | #COPY ["HeuristicLab.PluginInfrastructure/3.3/", "HeuristicLab.PluginInfrastructure/3.3/"]
|
---|
13 | #COPY ["HeuristicLab.DynamicAssemblyTestApp/", "HeuristicLab.DynamicAssemblyTestApp/"]
|
---|
14 | #COPY ["HeuristicLab.Core/3.3/", "HeuristicLab.Core/3.3/"]
|
---|
15 | #COPY ["HeuristicLab.Persistence/3.3/", "HeuristicLab.Persistence/3.3/"]
|
---|
16 | #COPY ["HeuristicLab.Tracing/3.3/", "HeuristicLab.Tracing/3.3/"]
|
---|
17 | #COPY ["HeuristicLab.Common.Resources/3.3/", "HeuristicLab.Common.Resources/3.3/"]
|
---|
18 | #COPY ["HeuristicLab.Collections/3.3/", "HeuristicLab.Collections/3.3/"]
|
---|
19 | #COPY ["HeuristicLab.Optimization/3.3/", "HeuristicLab.Optimization/3.3/"]
|
---|
20 | #COPY ["HeuristicLab.Data/3.3/", "HeuristicLab.Data/3.3/"]
|
---|
21 | #COPY ["HeuristicLab.Parameters/3.3/", "HeuristicLab.Parameters/3.3/"]
|
---|
22 | #COPY ["HeuristicLab.Operators/3.3/", "HeuristicLab.Operators/3.3/"]
|
---|
23 | #COPY ["HEAL.Attic-master/HEAL.Attic-master/src", "HeuristicLab.Operators/3.3/"]
|
---|
24 |
|
---|
25 |
|
---|
26 | #RUN dotnet restore "HeuristicLab/3.3/HeuristicLab-3.3.csproj"
|
---|
27 | #WORKDIR "/src/HeuristicLab/3.3"
|
---|
28 | #RUN dotnet build "HeuristicLab-3.3.csproj" -c Release -o /app_linux
|
---|
29 |
|
---|
30 | #FROM build AS publish
|
---|
31 | #RUN dotnet publish "HeuristicLab-3.3.csproj" -c Release -o /app_linux
|
---|
32 |
|
---|
33 | COPY . .
|
---|
34 |
|
---|
35 | #FROM runtime AS final
|
---|
36 | #WORKDIR /app
|
---|
37 | #COPY --from=publish /app .
|
---|
38 | ENTRYPOINT ["dotnet", "HeuristicLab-3.3.dll"]
|
---|
39 | #TODO: image nur aus binarys bauen von publish
|
---|
40 | #https://blogs.msdn.microsoft.com/appconsult/2018/09/20/running-containers-based-on-different-platforms-side-by-side-with-docker-preview/
|
---|