From bba48c37662d44cfadf8f0886b79cffa6c121ed9 Mon Sep 17 00:00:00 2001 From: masoud Date: Sat, 6 Dec 2025 16:12:31 +0000 Subject: [PATCH] Add all Protobuf projects to Dockerfile --- src/BackOffice.BFF.WebApi/Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/BackOffice.BFF.WebApi/Dockerfile b/src/BackOffice.BFF.WebApi/Dockerfile index f8547fd..f7dc3fb 100644 --- a/src/BackOffice.BFF.WebApi/Dockerfile +++ b/src/BackOffice.BFF.WebApi/Dockerfile @@ -4,12 +4,39 @@ EXPOSE 8080 FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /src + +# Copy main projects COPY ["BackOffice.BFF.WebApi/BackOffice.BFF.WebApi.csproj", "BackOffice.BFF.WebApi/"] COPY ["BackOffice.BFF.WebApi/NuGet.config", "BackOffice.BFF.WebApi/"] COPY ["BackOffice.BFF.Application/BackOffice.BFF.Application.csproj", "BackOffice.BFF.Application/"] COPY ["BackOffice.BFF.Infrastructure/BackOffice.BFF.Infrastructure.csproj", "BackOffice.BFF.Infrastructure/"] COPY ["BackOffice.BFF.Domain/BackOffice.BFF.Domain.csproj", "BackOffice.BFF.Domain/"] +# Copy all Protobuf projects +COPY ["Protobufs/BackOffice.BFF.Category.Protobuf/BackOffice.BFF.Category.Protobuf.csproj", "Protobufs/BackOffice.BFF.Category.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.ClubMembership.Protobuf/BackOffice.BFF.ClubMembership.Protobuf.csproj", "Protobufs/BackOffice.BFF.ClubMembership.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Commission.Protobuf/BackOffice.BFF.Commission.Protobuf.csproj", "Protobufs/BackOffice.BFF.Commission.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Common.Protobuf/BackOffice.BFF.Common.Protobuf.csproj", "Protobufs/BackOffice.BFF.Common.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Configuration.Protobuf/BackOffice.BFF.Configuration.Protobuf.csproj", "Protobufs/BackOffice.BFF.Configuration.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.DiscountCategory.Protobuf/BackOffice.BFF.DiscountCategory.Protobuf.csproj", "Protobufs/BackOffice.BFF.DiscountCategory.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.DiscountOrder.Protobuf/BackOffice.BFF.DiscountOrder.Protobuf.csproj", "Protobufs/BackOffice.BFF.DiscountOrder.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.DiscountProduct.Protobuf/BackOffice.BFF.DiscountProduct.Protobuf.csproj", "Protobufs/BackOffice.BFF.DiscountProduct.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.DiscountShoppingCart.Protobuf/BackOffice.BFF.DiscountShoppingCart.Protobuf.csproj", "Protobufs/BackOffice.BFF.DiscountShoppingCart.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Health.Protobuf/BackOffice.BFF.Health.Protobuf.csproj", "Protobufs/BackOffice.BFF.Health.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.ManualPayment.Protobuf/BackOffice.BFF.ManualPayment.Protobuf.csproj", "Protobufs/BackOffice.BFF.ManualPayment.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.NetworkMembership.Protobuf/BackOffice.BFF.NetworkMembership.Protobuf.csproj", "Protobufs/BackOffice.BFF.NetworkMembership.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Otp.Protobuf/BackOffice.BFF.Otp.Protobuf.csproj", "Protobufs/BackOffice.BFF.Otp.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Package.Protobuf/BackOffice.BFF.Package.Protobuf.csproj", "Protobufs/BackOffice.BFF.Package.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.ProductTag.Protobuf/BackOffice.BFF.ProductTag.Protobuf.csproj", "Protobufs/BackOffice.BFF.ProductTag.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Products.Protobuf/BackOffice.BFF.Products.Protobuf.csproj", "Protobufs/BackOffice.BFF.Products.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.PublicMessage.Protobuf/BackOffice.BFF.PublicMessage.Protobuf.csproj", "Protobufs/BackOffice.BFF.PublicMessage.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Role.Protobuf/BackOffice.BFF.Role.Protobuf.csproj", "Protobufs/BackOffice.BFF.Role.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.Tag.Protobuf/BackOffice.BFF.Tag.Protobuf.csproj", "Protobufs/BackOffice.BFF.Tag.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.User.Protobuf/BackOffice.BFF.User.Protobuf.csproj", "Protobufs/BackOffice.BFF.User.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.UserAddress.Protobuf/BackOffice.BFF.UserAddress.Protobuf.csproj", "Protobufs/BackOffice.BFF.UserAddress.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.UserOrder.Protobuf/BackOffice.BFF.UserOrder.Protobuf.csproj", "Protobufs/BackOffice.BFF.UserOrder.Protobuf/"] +COPY ["Protobufs/BackOffice.BFF.UserRole.Protobuf/BackOffice.BFF.UserRole.Protobuf.csproj", "Protobufs/BackOffice.BFF.UserRole.Protobuf/"] + RUN dotnet restore "BackOffice.BFF.WebApi/BackOffice.BFF.WebApi.csproj" --configfile "BackOffice.BFF.WebApi/NuGet.config" COPY . .