Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

25 lignes
1.3 KiB

  1. #See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
  2. FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
  3. WORKDIR /app
  4. EXPOSE 80
  5. EXPOSE 443
  6. FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
  7. WORKDIR /src
  8. COPY ["BPA.SAAS.KitChenManageOrder.Web.Entry/BPA.SAAS.KitChenManageOrder.Web.Entry.csproj", "BPA.SAAS.KitChenManageOrder.Web.Entry/"]
  9. COPY ["BPA.SAAS.KitChenManageOrder.Web.Core/BPA.SAAS.KitChenManageOrder.Web.Core.csproj", "BPA.SAAS.KitChenManageOrder.Web.Core/"]
  10. COPY ["BPA.SAAS.KitChenManageOrder.Application/BPA.SAAS.KitChenManageOrder.Application.csproj", "BPA.SAAS.KitChenManageOrder.Application/"]
  11. COPY ["BPA.SAAS.KitChenManageOrder.Core/BPA.SAAS.KitChenManageOrder.Core.csproj", "BPA.SAAS.KitChenManageOrder.Core/"]
  12. RUN dotnet restore "BPA.SAAS.KitChenManageOrder.Web.Entry/BPA.SAAS.KitChenManageOrder.Web.Entry.csproj"
  13. COPY . .
  14. WORKDIR "/src/BPA.SAAS.KitChenManageOrder.Web.Entry"
  15. RUN dotnet build "BPA.SAAS.KitChenManageOrder.Web.Entry.csproj" -c Release -o /app/build
  16. FROM build AS publish
  17. RUN dotnet publish "BPA.SAAS.KitChenManageOrder.Web.Entry.csproj" -c Release -o /app/publish /p:UseAppHost=false
  18. FROM base AS final
  19. WORKDIR /app
  20. COPY --from=publish /app/publish .
  21. ENTRYPOINT ["dotnet", "BPA.SAAS.KitChenManageOrder.Web.Entry.dll"]