|
1234567891011121314151617181920212223242526 |
- #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 ["BPA.SAAS.KitChenManage.Web.Entry/BPA.SAAS.KitChenManage.Web.Entry.csproj", "BPA.SAAS.KitChenManage.Web.Entry/"]
- COPY ["BPA.SAAS.KitChenManage.Web.Core/BPA.SAAS.KitChenManage.Web.Core.csproj", "BPA.SAAS.KitChenManage.Web.Core/"]
- COPY ["BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.csproj", "BPA.SAAS.KitChenManage.Application/"]
- COPY ["BPA.SAAS.KitChenManage.Core/BPA.SAAS.KitChenManage.Core.csproj", "BPA.SAAS.KitChenManage.Core/"]
- COPY ["BPA.SAAS.KitChenManage.Comm/BPA.SAAS.KitChenManage.Comm.csproj", "BPA.SAAS.KitChenManage.Comm/"]
- RUN dotnet restore "BPA.SAAS.KitChenManage.Web.Entry/BPA.SAAS.KitChenManage.Web.Entry.csproj"
- COPY . .
- WORKDIR "/src/BPA.SAAS.KitChenManage.Web.Entry"
- RUN dotnet build "BPA.SAAS.KitChenManage.Web.Entry.csproj" -c Release -o /app/build
-
- FROM build AS publish
- RUN dotnet publish "BPA.SAAS.KitChenManage.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.KitChenManage.Web.Entry.dll"]
|