临河任务调度
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
530B

  1. FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
  2. WORKDIR /app
  3. EXPOSE 80
  4. ENV ASPNETCORE_URLS=http://+:80
  5. FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
  6. WORKDIR /src
  7. COPY . .
  8. WORKDIR /src/templates/service/host/Himp.TaskScheduling.HttpApi.Host
  9. RUN dotnet restore -nowarn:msb3202,nu1503
  10. RUN dotnet build --no-restore -c Release -o /app
  11. FROM build AS publish
  12. RUN dotnet publish --no-restore -c Release -o /app
  13. FROM base AS final
  14. WORKDIR /app
  15. COPY --from=publish /app .
  16. ENTRYPOINT ["dotnet", "Himp.TaskScheduling.HttpApi.Host.dll"]