FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ["Aero.InternalApi.WebApi/Aero.InternalApi.WebApi.csproj", "Aero.InternalApi.WebApi/"]
COPY ["Aero.Common/Aero.Common.csproj", "Aero.Common/"]
COPY ["Aero.InternalApi.DAL/Aero.InternalApi.DAL.csproj", "Aero.InternalApi.DAL/"]
COPY ["Aero.InternalApi.DTO/Aero.InternalApi.DTO.csproj", "Aero.InternalApi.DTO/"]
COPY ["Aero.InternalApi.Services/Aero.InternalApi.Services.csproj", "Aero.InternalApi.Services/"]
RUN dotnet nuget add source https://<mydomain>/v3/index.json
RUN dotnet restore "Aero.InternalApi.WebApi/Aero.InternalApi.WebApi.csproj"
COPY . .
WORKDIR "/src/Aero.InternalApi.WebApi"
RUN dotnet build "Aero.InternalApi.WebApi.csproj" -c Release -o /app/build
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ["Aero.InternalApi.WebApi/Aero.InternalApi.WebApi.csproj", "Aero.InternalApi.WebApi/"]
COPY ["Aero.Common/Aero.Common.csproj", "Aero.Common/"]
COPY ["Aero.InternalApi.DAL/Aero.InternalApi.DAL.csproj", "Aero.InternalApi.DAL/"]
COPY ["Aero.InternalApi.DTO/Aero.InternalApi.DTO.csproj", "Aero.InternalApi.DTO/"]
COPY ["Aero.InternalApi.Services/Aero.InternalApi.Services.csproj", "Aero.InternalApi.Services/"]
RUN dotnet nuget add source https://<mydomain>/v3/index.json
RUN dotnet restore "Aero.InternalApi.WebApi/Aero.InternalApi.WebApi.csproj"
COPY . .
WORKDIR "/src/Aero.InternalApi.WebApi"
RUN dotnet build "Aero.InternalApi.WebApi.csproj" -c Release -o /app/build