Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

16 rindas
544B

  1. FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
  2. WORKDIR /app
  3. EXPOSE 9090
  4. FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
  5. WORKDIR /src
  6. COPY ["docker-dotnetcore-api.csproj", "."]
  7. RUN dotnet restore "./docker-dotnetcore-api.csproj"
  8. COPY . .
  9. WORKDIR "/src/."
  10. RUN dotnet build "docker-dotnetcore-api.csproj" -c Release -o /app/build
  11. FROM build AS publish
  12. RUN dotnet publish "docker-dotnetcore-api.csproj" -c Release -o /app/publish
  13. FROM base AS final
  14. WORKDIR /app
  15. COPY --from=publish /app/publish .
  16. ENTRYPOINT ["dotnet", "docker-dotnetcore-api.dll"]