aspcore.dockerfile 387 B

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