Skip to content

Commit

Permalink
fix: docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-shirbandi committed Dec 20, 2023
1 parent b6edf55 commit 84062ee
Show file tree
Hide file tree
Showing 20 changed files with 290 additions and 55 deletions.
9 changes: 5 additions & 4 deletions src/2-Services/Boards/Api/Boards.Read.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
#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
Expand All @@ -7,16 +7,17 @@ EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["src/2-Services/Boards/Read/Api/Boards.Read.Api/Boards.Read.Api.csproj", "src/2-Services/Boards/Read/Api/Boards.Read.Api/"]
COPY ["Directory.Build.props", "."]
COPY ["src/2-Services/Boards/Api/Boards.Read.Api/Boards.Read.Api.csproj", "src/2-Services/Boards/Api/Boards.Read.Api/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
RUN dotnet restore "src/2-Services/Boards/Read/Api/Boards.Read.Api/Boards.Read.Api.csproj"
RUN dotnet restore "src/2-Services/Boards/Api/Boards.Read.Api/Boards.Read.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Boards/Read/Api/Boards.Read.Api"
WORKDIR "/src/src/2-Services/Boards/Api/Boards.Read.Api"
RUN dotnet build "Boards.Read.Api.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
28 changes: 28 additions & 0 deletions src/2-Services/Boards/Api/Boards.Read.Api/Dockerfile.original
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#See https://aka.ms/containerfastmode to understand 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 ["src/2-Services/Boards/Api/Boards.Read.Api/Boards.Read.Api.csproj", "src/2-Services/Boards/Api/Boards.Read.Api/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
RUN dotnet restore "src/2-Services/Boards/Api/Boards.Read.Api/Boards.Read.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Boards/Api/Boards.Read.Api"
RUN dotnet build "Boards.Read.Api.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Boards.Read.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "TaskoMask.Services.Boards.Read.Api.dll"]
12 changes: 5 additions & 7 deletions src/2-Services/Boards/Api/Boards.Write.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
#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
Expand All @@ -7,19 +7,17 @@ EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["src/2-Services/Boards/Write/Api/Boards.Write.Api/Boards.Write.Api.csproj", "src/2-Services/Boards/Write/Api/Boards.Write.Api/"]
COPY ["Directory.Build.props", "."]
COPY ["src/2-Services/Boards/Api/Boards.Write.Api/Boards.Write.Api.csproj", "src/2-Services/Boards/Api/Boards.Write.Api/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
COPY ["src/2-Services/Boards/Write/Libraries/Infrastructure/Infrastructure.csproj", "src/2-Services/Boards/Write/Libraries/Infrastructure/"]
COPY ["src/2-Services/Boards/Write/Libraries/Application/Application.csproj", "src/2-Services/Boards/Write/Libraries/Application/"]
COPY ["src/2-Services/Boards/Write/Libraries/Domain/Domain.csproj", "src/2-Services/Boards/Write/Libraries/Domain/"]
RUN dotnet restore "src/2-Services/Boards/Write/Api/Boards.Write.Api/Boards.Write.Api.csproj"
RUN dotnet restore "src/2-Services/Boards/Api/Boards.Write.Api/Boards.Write.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Boards/Write/Api/Boards.Write.Api"
WORKDIR "/src/src/2-Services/Boards/Api/Boards.Write.Api"
RUN dotnet build "Boards.Write.Api.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
31 changes: 31 additions & 0 deletions src/2-Services/Boards/Api/Boards.Write.Api/Dockerfile.original
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#See https://aka.ms/containerfastmode to understand 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 ["src/2-Services/Boards/Api/Boards.Write.Api/Boards.Write.Api.csproj", "src/2-Services/Boards/Api/Boards.Write.Api/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
COPY ["src/2-Services/Boards/Write/Libraries/Infrastructure/Infrastructure.csproj", "src/2-Services/Boards/Write/Libraries/Infrastructure/"]
COPY ["src/2-Services/Boards/Write/Libraries/Application/Application.csproj", "src/2-Services/Boards/Write/Libraries/Application/"]
COPY ["src/2-Services/Boards/Write/Libraries/Domain/Domain.csproj", "src/2-Services/Boards/Write/Libraries/Domain/"]
RUN dotnet restore "src/2-Services/Boards/Api/Boards.Write.Api/Boards.Write.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Boards/Api/Boards.Write.Api"
RUN dotnet build "Boards.Write.Api.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Boards.Write.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "TaskoMask.Services.Boards.Write.Api.dll"]
12 changes: 5 additions & 7 deletions src/2-Services/Identity/Api/Identity.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
#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
Expand All @@ -7,16 +7,14 @@ EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["Directory.Build.props", "."]
COPY ["src/2-Services/Identity/Api/Identity.Api/Identity.Api.csproj", "src/2-Services/Identity/Api/Identity.Api/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/2-Services/Identity/Libraries/Infrastructure/Infrastructure.csproj", "src/2-Services/Identity/Libraries/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/2-Services/Identity/Libraries/Application/Application.csproj", "src/2-Services/Identity/Libraries/Application/"]
COPY ["src/2-Services/Identity/Libraries/Domain/Domain.csproj", "src/2-Services/Identity/Libraries/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
RUN dotnet restore "src/2-Services/Identity/Api/Identity.Api/Identity.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Identity/Api/Identity.Api"
Expand All @@ -28,4 +26,4 @@ RUN dotnet publish "Identity.Api.csproj" -c Release -o /app/publish /p:UseAppHos
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "TaskoMask.Services.TaskoMask.Services.Identity.Api.dll"]
ENTRYPOINT ["dotnet", "TaskoMask.Services.Identity.Api.dll"]
31 changes: 31 additions & 0 deletions src/2-Services/Identity/Api/Identity.Api/Dockerfile.original
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#See https://aka.ms/containerfastmode to understand 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 ["src/2-Services/Identity/Api/Identity.Api/Identity.Api.csproj", "src/2-Services/Identity/Api/Identity.Api/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/2-Services/Identity/Libraries/Infrastructure/Infrastructure.csproj", "src/2-Services/Identity/Libraries/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/2-Services/Identity/Libraries/Application/Application.csproj", "src/2-Services/Identity/Libraries/Application/"]
COPY ["src/2-Services/Identity/Libraries/Domain/Domain.csproj", "src/2-Services/Identity/Libraries/Domain/"]
RUN dotnet restore "src/2-Services/Identity/Api/Identity.Api/Identity.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Identity/Api/Identity.Api"
RUN dotnet build "Identity.Api.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Identity.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "TaskoMask.Services.TaskoMask.Services.Identity.Api.dll"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5017"
"applicationUrl": "https://localhost:5017;http://localhost:5017"
},
"Docker": {
"commandName": "Docker",
Expand Down
9 changes: 5 additions & 4 deletions src/2-Services/Owners/Api/Owners.Read.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
#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
Expand All @@ -7,16 +7,17 @@ EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["src/2-Services/Owners/Read/Api/Owners.Read.Api/Owners.Read.Api.csproj", "src/2-Services/Owners/Read/Api/Owners.Read.Api/"]
COPY ["Directory.Build.props", "."]
COPY ["src/2-Services/Owners/Api/Owners.Read.Api/Owners.Read.Api.csproj", "src/2-Services/Owners/Api/Owners.Read.Api/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
RUN dotnet restore "src/2-Services/Owners/Read/Api/Owners.Read.Api/Owners.Read.Api.csproj"
RUN dotnet restore "src/2-Services/Owners/Api/Owners.Read.Api/Owners.Read.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Owners/Read/Api/Owners.Read.Api"
WORKDIR "/src/src/2-Services/Owners/Api/Owners.Read.Api"
RUN dotnet build "Owners.Read.Api.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
28 changes: 28 additions & 0 deletions src/2-Services/Owners/Api/Owners.Read.Api/Dockerfile.original
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#See https://aka.ms/containerfastmode to understand 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 ["src/2-Services/Owners/Api/Owners.Read.Api/Owners.Read.Api.csproj", "src/2-Services/Owners/Api/Owners.Read.Api/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
RUN dotnet restore "src/2-Services/Owners/Api/Owners.Read.Api/Owners.Read.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Owners/Api/Owners.Read.Api"
RUN dotnet build "Owners.Read.Api.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Owners.Read.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "TaskoMask.Services.Owners.Read.Api.dll"]
12 changes: 5 additions & 7 deletions src/2-Services/Owners/Api/Owners.Write.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
#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
Expand All @@ -7,19 +7,17 @@ EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["src/2-Services/Owners/Write/Api/Owners.Write.Api/Owners.Write.Api.csproj", "src/2-Services/Owners/Write/Api/Owners.Write.Api/"]
COPY ["Directory.Build.props", "."]
COPY ["src/2-Services/Owners/Api/Owners.Write.Api/Owners.Write.Api.csproj", "src/2-Services/Owners/Api/Owners.Write.Api/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
COPY ["src/2-Services/Owners/Write/Libraries/Infrastructure/Infrastructure.csproj", "src/2-Services/Owners/Write/Libraries/Infrastructure/"]
COPY ["src/2-Services/Owners/Write/Libraries/Application/Application.csproj", "src/2-Services/Owners/Write/Libraries/Application/"]
COPY ["src/2-Services/Owners/Write/Libraries/Domain/Domain.csproj", "src/2-Services/Owners/Write/Libraries/Domain/"]
RUN dotnet restore "src/2-Services/Owners/Write/Api/Owners.Write.Api/Owners.Write.Api.csproj"
RUN dotnet restore "src/2-Services/Owners/Api/Owners.Write.Api/Owners.Write.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Owners/Write/Api/Owners.Write.Api"
WORKDIR "/src/src/2-Services/Owners/Api/Owners.Write.Api"
RUN dotnet build "Owners.Write.Api.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
31 changes: 31 additions & 0 deletions src/2-Services/Owners/Api/Owners.Write.Api/Dockerfile.original
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#See https://aka.ms/containerfastmode to understand 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 ["src/2-Services/Owners/Api/Owners.Write.Api/Owners.Write.Api.csproj", "src/2-Services/Owners/Api/Owners.Write.Api/"]
COPY ["src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj", "src/1-BuildingBlocks/Web.MVC/"]
COPY ["src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj", "src/1-BuildingBlocks/Infrastructure/"]
COPY ["src/1-BuildingBlocks/Application/Application.csproj", "src/1-BuildingBlocks/Application/"]
COPY ["src/1-BuildingBlocks/Domain/Domain.csproj", "src/1-BuildingBlocks/Domain/"]
COPY ["src/1-BuildingBlocks/Contracts/Contracts.csproj", "src/1-BuildingBlocks/Contracts/"]
COPY ["src/1-BuildingBlocks/Web/Web.csproj", "src/1-BuildingBlocks/Web/"]
COPY ["src/2-Services/Owners/Write/Libraries/Infrastructure/Infrastructure.csproj", "src/2-Services/Owners/Write/Libraries/Infrastructure/"]
COPY ["src/2-Services/Owners/Write/Libraries/Application/Application.csproj", "src/2-Services/Owners/Write/Libraries/Application/"]
COPY ["src/2-Services/Owners/Write/Libraries/Domain/Domain.csproj", "src/2-Services/Owners/Write/Libraries/Domain/"]
RUN dotnet restore "src/2-Services/Owners/Api/Owners.Write.Api/Owners.Write.Api.csproj"
COPY . .
WORKDIR "/src/src/2-Services/Owners/Api/Owners.Write.Api"
RUN dotnet build "Owners.Write.Api.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Owners.Write.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "TaskoMask.Services.Owners.Write.Api.dll"]
Loading

0 comments on commit 84062ee

Please sign in to comment.