团餐订单
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

25 行
1.2 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.KitChen.GroupMealOrder/BPA.KitChen.GroupMealOrder.csproj", "BPA.KitChen.GroupMealOrder/"]
  9. COPY ["BPA.KitChen.GroupMealOrder.Application/BPA.KitChen.GroupMealOrder.Application.csproj", "BPA.KitChen.GroupMealOrder.Application/"]
  10. COPY ["BPA.KitChen.GroupMealOrder.Core/BPA.KitChen.GroupMealOrder.Core.csproj", "BPA.KitChen.GroupMealOrder.Core/"]
  11. COPY ["BPA.KitChen.GroupMealOrder.SqlSugar/BPA.KitChen.GroupMealOrder.SqlSugar.csproj", "BPA.KitChen.GroupMealOrder.SqlSugar/"]
  12. RUN dotnet restore "BPA.KitChen.GroupMealOrder/BPA.KitChen.GroupMealOrder.csproj"
  13. COPY . .
  14. WORKDIR "/src/BPA.KitChen.GroupMealOrder"
  15. RUN dotnet build "BPA.KitChen.GroupMealOrder.csproj" -c Release -o /app/build
  16. FROM build AS publish
  17. RUN dotnet publish "BPA.KitChen.GroupMealOrder.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.KitChen.GroupMealOrder.dll"]