aspcore.dockerfile 389 B

12345678910111213
  1. FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
  2. WORKDIR /app
  3. COPY PlatformBenchmarks .
  4. RUN dotnet publish -c Release -o out
  5. FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS runtime
  6. ENV ASPNETCORE_URLS http://+:8080
  7. ENV COMPlus_ReadyToRun 0
  8. WORKDIR /app
  9. COPY --from=build /app/out ./
  10. COPY Benchmarks/appsettings.json ./appsettings.json
  11. ENTRYPOINT ["dotnet", "PlatformBenchmarks.dll"]