aspcore-aot.dockerfile 493 B

123456789101112131415161718
  1. FROM mcr.microsoft.com/dotnet/sdk:7.0.100 AS build
  2. RUN apt-get update
  3. RUN apt-get -yqq install clang zlib1g-dev
  4. WORKDIR /app
  5. COPY PlatformBenchmarks .
  6. RUN dotnet publish -c Release -o out -p:PublishAot=true
  7. FROM mcr.microsoft.com/dotnet/aspnet:7.0.0 AS runtime
  8. ENV ASPNETCORE_URLS http://+:8080
  9. ENV DOTNET_SYSTEM_NET_SOCKETS_INLINE_COMPLETIONS 1
  10. WORKDIR /app
  11. COPY --from=build /app/out ./
  12. COPY Benchmarks/appsettings.json ./appsettings.json
  13. EXPOSE 8080
  14. ENTRYPOINT ["./PlatformBenchmarks"]