fastendpoints.dockerfile 360 B

12345678910111213141516
  1. FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
  2. WORKDIR /app
  3. COPY Benchmarks .
  4. RUN dotnet publish -c Release -o out
  5. FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
  6. ENV DOTNET_GCDynamicAdaptationMode=0
  7. ENV DOTNET_ReadyToRun=0
  8. ENV DOTNET_HillClimbing_Disable=1
  9. WORKDIR /app
  10. COPY --from=build /app/out ./
  11. EXPOSE 8080
  12. ENTRYPOINT ["dotnet", "Benchmarks.dll"]