后厨api
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

27 linhas
1.4 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 ["NuGet.config", "."]
  9. COPY ["BPA.SAAS.KitChenManage.Web.Entry/BPA.SAAS.KitChenManage.Web.Entry.csproj", "BPA.SAAS.KitChenManage.Web.Entry/"]
  10. COPY ["BPA.SAAS.KitChenManage.Web.Core/BPA.SAAS.KitChenManage.Web.Core.csproj", "BPA.SAAS.KitChenManage.Web.Core/"]
  11. COPY ["BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.csproj", "BPA.SAAS.KitChenManage.Application/"]
  12. COPY ["BPA.SAAS.KitChenManage.Core/BPA.SAAS.KitChenManage.Core.csproj", "BPA.SAAS.KitChenManage.Core/"]
  13. COPY ["BPA.SAAS.KitChenManage.Comm/BPA.SAAS.KitChenManage.Comm.csproj", "BPA.SAAS.KitChenManage.Comm/"]
  14. RUN dotnet restore "BPA.SAAS.KitChenManage.Web.Entry/BPA.SAAS.KitChenManage.Web.Entry.csproj" --configfile "NuGet.config"
  15. COPY . .
  16. WORKDIR "/src/BPA.SAAS.KitChenManage.Web.Entry"
  17. RUN dotnet build "BPA.SAAS.KitChenManage.Web.Entry.csproj" -c Release -o /app/build
  18. FROM build AS publish
  19. RUN dotnet publish "BPA.SAAS.KitChenManage.Web.Entry.csproj" -c Release -o /app/publish /p:UseAppHost=false
  20. FROM base AS final
  21. WORKDIR /app
  22. COPY --from=publish /app/publish .
  23. ENTRYPOINT ["dotnet", "BPA.SAAS.KitChenManage.Web.Entry.dll"]