appmpower.dockerfile 410 B

123456789101112131415161718
  1. FROM mcr.microsoft.com/dotnet/sdk:6.0.100 AS build
  2. RUN apt-get update
  3. RUN apt-get -yqq install clang zlib1g-dev libkrb5-dev libtinfo5
  4. WORKDIR /app
  5. COPY src .
  6. RUN dotnet publish -c Release -o out -r linux-x64
  7. # Construct the actual image that will run
  8. FROM mcr.microsoft.com/dotnet/aspnet:6.0.0 AS runtime
  9. RUN apt-get update
  10. WORKDIR /app
  11. COPY --from=build /app/out ./
  12. EXPOSE 8080
  13. ENTRYPOINT ["./appMpower"]