FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim AS base WORKDIR /app FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build WORKDIR /src COPY ["HeuristicLab/3.3/", "HeuristicLab/3.3/"] COPY ["HeuristicLab.CommandLineInterface/", "HeuristicLab.CommandLineInterface/"] COPY ["HeuristicLab.Common/3.3/", "HeuristicLab.Common/3.3/"] COPY ["HeuristicLab.PluginInfrastructure/3.3/", "HeuristicLab.PluginInfrastructure/3.3/"] COPY ["HeuristicLab.DynamicAssemblyTestApp/", "HeuristicLab.DynamicAssemblyTestApp/"] COPY ["HeuristicLab.Core/3.3/", "HeuristicLab.Core/3.3/"] COPY ["HeuristicLab.Persistence/3.3/", "HeuristicLab.Persistence/3.3/"] COPY ["HeuristicLab.Tracing/3.3/", "HeuristicLab.Tracing/3.3/"] COPY ["HeuristicLab.Common.Resources/3.3/", "HeuristicLab.Common.Resources/3.3/"] COPY ["HeuristicLab.Collections/3.3/", "HeuristicLab.Collections/3.3/"] COPY ["HeuristicLab.Optimization/3.3/", "HeuristicLab.Optimization/3.3/"] COPY ["HeuristicLab.Data/3.3/", "HeuristicLab.Data/3.3/"] COPY ["HeuristicLab.Parameters/3.3/", "HeuristicLab.Parameters/3.3/"] COPY ["HeuristicLab.Operators/3.3/", "HeuristicLab.Operators/3.3/"] RUN dotnet restore "HeuristicLab/3.3/HeuristicLab-3.3.csproj" WORKDIR "/src/HeuristicLab/3.3" RUN dotnet build "HeuristicLab-3.3.csproj" -c Release -o /app FROM build AS publish RUN dotnet publish "HeuristicLab-3.3.csproj" -c Release -o /app FROM base AS final WORKDIR /app COPY --from=publish /app . ENTRYPOINT ["dotnet", "HeuristicLab-3.3.dll"]