aspcore-vb-mw-ado-my.dockerfile 458 B

12345678910111213141516171819
  1. FROM mcr.microsoft.com/dotnet/sdk:7.0.100 AS build
  2. WORKDIR /app
  3. COPY Benchmarks .
  4. RUN dotnet publish -c Release -o out
  5. COPY Benchmarks/appsettings.mysql.json ./out/appsettings.json
  6. FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime
  7. # Full PGO
  8. ENV DOTNET_TieredPGO 1
  9. ENV DOTNET_TC_QuickJitForLoops 1
  10. ENV DOTNET_ReadyToRun 0
  11. ENV ASPNETCORE_URLS http://+:8080
  12. WORKDIR /app
  13. COPY --from=build /app/out ./
  14. EXPOSE 8080
  15. ENTRYPOINT ["dotnet", "Benchmarks.dll"]