|
- #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.
-
- FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
- WORKDIR /app
- EXPOSE 80
- EXPOSE 443
-
- FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
- WORKDIR /src
- COPY ["NuGet.config", "."]
- COPY ["BPA.SAAS.KitChenManageOrder.Web.Entry/BPA.SAAS.KitChenManageOrder.Web.Entry.csproj", "BPA.SAAS.KitChenManageOrder.Web.Entry/"]
- COPY ["BPA.SAAS.KitChenManageOrder.Web.Core/BPA.SAAS.KitChenManageOrder.Web.Core.csproj", "BPA.SAAS.KitChenManageOrder.Web.Core/"]
- COPY ["BPA.SAAS.KitChenManageOrder.Application/BPA.SAAS.KitChenManageOrder.Application.csproj", "BPA.SAAS.KitChenManageOrder.Application/"]
- COPY ["BPA.SAAS.KitChenManageOrder.Core/BPA.SAAS.KitChenManageOrder.Core.csproj", "BPA.SAAS.KitChenManageOrder.Core/"]
- RUN dotnet restore "BPA.SAAS.KitChenManageOrder.Web.Entry/BPA.SAAS.KitChenManageOrder.Web.Entry.csproj" --configfile "NuGet.config"
- COPY . .
- WORKDIR "/src/BPA.SAAS.KitChenManageOrder.Web.Entry"
- RUN dotnet build "BPA.SAAS.KitChenManageOrder.Web.Entry.csproj" -c Release -o /app/build
-
- FROM build AS publish
- RUN dotnet publish "BPA.SAAS.KitChenManageOrder.Web.Entry.csproj" -c Release -o /app/publish /p:UseAppHost=false
-
- FROM base AS final
- WORKDIR /app
- COPY --from=publish /app/publish .
- ENTRYPOINT ["dotnet", "BPA.SAAS.KitChenManageOrder.Web.Entry.dll"]
|