Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2924_DotNetCoreMigration/HeuristicLab/3.3/Dockerfile @ 16998

Last change on this file since 16998 was 16998, checked in by dpiringe, 5 years ago

#2924:

  • in project HeuristicLab.CommandLineInterface changed output for options -> hidden options are not shown in the help box anymore
  • in project HeuristicLab.DynamicAssemblyTestApp:
    • added ApplicationAttributes
    • added full cancel/pause/resume support for class AppTest to test the same behaviour between main and child process
  • in project HeuristicLab:
    • changed auto generated Dockerfile -> only copies necessary projects -> speeds up the build process
    • in file HeuristicLab-3.3.csproj:
      • changed DockerDefaultTargetOS to Linux
      • removed reference HeuristicLab.DefinitionLanguage
      • added icon and manifest
    • deleted folder Properties with file launchSettings.json
    • changed the direct access to ApplicationTypes for OptimizeCommand and InspectCommand to new method IApplicationManager.GetInstances<T>(params object[] args)
  • added build script for docker image dockerImageBuild.ps1
File size: 1.5 KB
Line 
1FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim AS base
2WORKDIR /app
3
4FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
5WORKDIR /src
6COPY ["HeuristicLab/3.3/", "HeuristicLab/3.3/"]
7COPY ["HeuristicLab.CommandLineInterface/", "HeuristicLab.CommandLineInterface/"]
8COPY ["HeuristicLab.Common/3.3/", "HeuristicLab.Common/3.3/"]
9COPY ["HeuristicLab.PluginInfrastructure/3.3/", "HeuristicLab.PluginInfrastructure/3.3/"]
10COPY ["HeuristicLab.DynamicAssemblyTestApp/", "HeuristicLab.DynamicAssemblyTestApp/"]
11COPY ["HeuristicLab.Core/3.3/", "HeuristicLab.Core/3.3/"]
12COPY ["HeuristicLab.Persistence/3.3/", "HeuristicLab.Persistence/3.3/"]
13COPY ["HeuristicLab.Tracing/3.3/", "HeuristicLab.Tracing/3.3/"]
14COPY ["HeuristicLab.Common.Resources/3.3/", "HeuristicLab.Common.Resources/3.3/"]
15COPY ["HeuristicLab.Collections/3.3/", "HeuristicLab.Collections/3.3/"]
16COPY ["HeuristicLab.Optimization/3.3/", "HeuristicLab.Optimization/3.3/"]
17COPY ["HeuristicLab.Data/3.3/", "HeuristicLab.Data/3.3/"]
18COPY ["HeuristicLab.Parameters/3.3/", "HeuristicLab.Parameters/3.3/"]
19COPY ["HeuristicLab.Operators/3.3/", "HeuristicLab.Operators/3.3/"]
20RUN dotnet restore "HeuristicLab/3.3/HeuristicLab-3.3.csproj"
21WORKDIR "/src/HeuristicLab/3.3"
22RUN dotnet build "HeuristicLab-3.3.csproj" -c Release -o /app
23
24FROM build AS publish
25RUN dotnet publish "HeuristicLab-3.3.csproj" -c Release -o /app
26
27FROM base AS final
28WORKDIR /app
29COPY --from=publish /app .
30ENTRYPOINT ["dotnet", "HeuristicLab-3.3.dll"]
Note: See TracBrowser for help on using the repository browser.