diff --git a/AdminUi/src/AdminUi/Dockerfile b/AdminUi/src/AdminUi/Dockerfile index 7e7c7b4205..0f769a4c1d 100644 --- a/AdminUi/src/AdminUi/Dockerfile +++ b/AdminUi/src/AdminUi/Dockerfile @@ -1,5 +1,3 @@ -#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:7.0 AS base WORKDIR /app EXPOSE 80 @@ -7,6 +5,7 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +COPY ["Directory.Build.props", "."] COPY ["AdminUi/src/AdminUi/AdminUi.csproj", "AdminUi/src/AdminUi/"] COPY ["AdminUi/src/AdminUi.Infrastructure/AdminUi.Infrastructure.csproj", "AdminUi/src/AdminUi.Infrastructure/"] COPY ["AdminUi/src/AdminUi.Infrastructure.Database.SqlServer/AdminUi.Infrastructure.Database.SqlServer.csproj", "AdminUi/src/AdminUi.Infrastructure.Database.SqlServer/"] diff --git a/Modules/Devices/src/Devices.AdminCli/Dockerfile b/Modules/Devices/src/Devices.AdminCli/Dockerfile index 6db0468383..f70e458277 100644 --- a/Modules/Devices/src/Devices.AdminCli/Dockerfile +++ b/Modules/Devices/src/Devices.AdminCli/Dockerfile @@ -1,11 +1,10 @@ -#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/runtime:7.0 AS base WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +COPY ["Directory.Build.props", "."] COPY ["Modules/Devices/src/Devices.AdminCli/Devices.AdminCli.csproj", "Modules/Devices/src/Devices.AdminCli/"] COPY ["Modules/Devices/src/Devices.Infrastructure/Devices.Infrastructure.csproj", "Modules/Devices/src/Devices.Infrastructure/"] COPY ["BuildingBlocks/src/BuildingBlocks.Domain/BuildingBlocks.Domain.csproj", "BuildingBlocks/src/BuildingBlocks.Domain/"] diff --git a/Modules/Files/src/Files.Jobs.SanityCheck/Dockerfile b/Modules/Files/src/Files.Jobs.SanityCheck/Dockerfile index 2b3c656695..3378bf5439 100644 --- a/Modules/Files/src/Files.Jobs.SanityCheck/Dockerfile +++ b/Modules/Files/src/Files.Jobs.SanityCheck/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +COPY ["Directory.Build.props", "."] COPY ["Modules/Files/src/Files.Jobs.SanityCheck/Files.Jobs.SanityCheck.csproj", "Modules/Files/src/Files.Jobs.SanityCheck/"] COPY ["BuildingBlocks/src/BuildingBlocks.Application.Abstractions/BuildingBlocks.Application.Abstractions.csproj", "BuildingBlocks/src/BuildingBlocks.Application.Abstractions/"] COPY ["BuildingBlocks/src/BuildingBlocks.Domain/BuildingBlocks.Domain.csproj", "BuildingBlocks/src/BuildingBlocks.Domain/"] @@ -30,4 +31,4 @@ RUN dotnet publish /property:UseAppHost=false /property:WarningLevel=0 --configu FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Files.Jobs.SanityCheck.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Files.Jobs.SanityCheck.dll"] diff --git a/Modules/Messages/src/Messages.Jobs.SanityCheck/Dockerfile b/Modules/Messages/src/Messages.Jobs.SanityCheck/Dockerfile index 43738a45b3..3e9a57c2ca 100644 --- a/Modules/Messages/src/Messages.Jobs.SanityCheck/Dockerfile +++ b/Modules/Messages/src/Messages.Jobs.SanityCheck/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +COPY ["Directory.Build.props", "."] COPY ["Modules/Messages/src/Messages.Jobs.SanityCheck/Messages.Jobs.SanityCheck.csproj", "Modules/Messages/src/Messages.Jobs.SanityCheck/"] COPY ["BuildingBlocks/src/BuildingBlocks.Application.Abstractions/BuildingBlocks.Application.Abstractions.csproj", "BuildingBlocks/src/BuildingBlocks.Application.Abstractions/"] COPY ["BuildingBlocks/src/BuildingBlocks.Domain/BuildingBlocks.Domain.csproj", "BuildingBlocks/src/BuildingBlocks.Domain/"] @@ -32,4 +33,4 @@ RUN dotnet publish /property:UseAppHost=false /property:WarningLevel=0 --configu FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Messages.Jobs.SanityCheck.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Messages.Jobs.SanityCheck.dll"] diff --git a/Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipChange/Dockerfile b/Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipChange/Dockerfile index 17d9c53a03..59172310b6 100644 --- a/Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipChange/Dockerfile +++ b/Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipChange/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +COPY ["Directory.Build.props", "."] COPY ["Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipChange/Relationships.Jobs.SanityCheck.RelationshipChange.csproj", "Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipChange/"] COPY ["BuildingBlocks/src/BuildingBlocks.Application.Abstractions/BuildingBlocks.Application.Abstractions.csproj", "BuildingBlocks/src/BuildingBlocks.Application.Abstractions/"] COPY ["BuildingBlocks/src/BuildingBlocks.Domain/BuildingBlocks.Domain.csproj", "BuildingBlocks/src/BuildingBlocks.Domain/"] @@ -32,4 +33,4 @@ RUN dotnet publish /property:UseAppHost=false /property:WarningLevel=0 --configu FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Relationships.Jobs.SanityCheck.RelationshipChange.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Relationships.Jobs.SanityCheck.RelationshipChange.dll"] diff --git a/Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipTemplate/Dockerfile b/Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipTemplate/Dockerfile index c6ceb97f10..f5ce7b2dee 100644 --- a/Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipTemplate/Dockerfile +++ b/Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipTemplate/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +COPY ["Directory.Build.props", "."] COPY ["Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipTemplate/Relationships.Jobs.SanityCheck.RelationshipTemplate.csproj", "Modules/Relationships/src/Relationships.Jobs.SanityCheck.RelationshipTemplate/"] COPY ["BuildingBlocks/src/BuildingBlocks.Application.Abstractions/BuildingBlocks.Application.Abstractions.csproj", "BuildingBlocks/src/BuildingBlocks.Application.Abstractions/"] COPY ["BuildingBlocks/src/BuildingBlocks.Domain/BuildingBlocks.Domain.csproj", "BuildingBlocks/src/BuildingBlocks.Domain/"] @@ -32,4 +33,4 @@ RUN dotnet publish /property:UseAppHost=false /property:WarningLevel=0 --configu FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Relationships.Jobs.SanityCheck.RelationshipTemplate.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Relationships.Jobs.SanityCheck.RelationshipTemplate.dll"] diff --git a/Modules/Synchronization/src/Synchronization.Jobs.SanityCheck/Dockerfile b/Modules/Synchronization/src/Synchronization.Jobs.SanityCheck/Dockerfile index 0c41e63a66..8ec6318ccd 100644 --- a/Modules/Synchronization/src/Synchronization.Jobs.SanityCheck/Dockerfile +++ b/Modules/Synchronization/src/Synchronization.Jobs.SanityCheck/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +COPY ["Directory.Build.props", "."] COPY ["Modules/Synchronization/src/Synchronization.Jobs.SanityCheck/Synchronization.Jobs.SanityCheck.csproj", "Modules/Synchronization/src/Synchronization.Jobs.SanityCheck/"] COPY ["BuildingBlocks/src/BuildingBlocks.Application.Abstractions/BuildingBlocks.Application.Abstractions.csproj", "BuildingBlocks/src/BuildingBlocks.Application.Abstractions/"] COPY ["BuildingBlocks/src/BuildingBlocks.Domain/BuildingBlocks.Domain.csproj", "BuildingBlocks/src/BuildingBlocks.Domain/"] @@ -31,4 +32,4 @@ RUN dotnet publish /property:UseAppHost=false /property:WarningLevel=0 --configu FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Synchronization.Jobs.SanityCheck.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Synchronization.Jobs.SanityCheck.dll"] diff --git a/Modules/Tokens/src/Tokens.Jobs.SanityCheck/Dockerfile b/Modules/Tokens/src/Tokens.Jobs.SanityCheck/Dockerfile index f7cc122461..7755950ee7 100644 --- a/Modules/Tokens/src/Tokens.Jobs.SanityCheck/Dockerfile +++ b/Modules/Tokens/src/Tokens.Jobs.SanityCheck/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +COPY ["Directory.Build.props", "."] COPY ["Modules/Tokens/src/Tokens.Jobs.SanityCheck/Tokens.Jobs.SanityCheck.csproj", "Modules/Tokens/src/Tokens.Jobs.SanityCheck/"] COPY ["BuildingBlocks/src/BuildingBlocks.Application.Abstractions/BuildingBlocks.Application.Abstractions.csproj", "BuildingBlocks/src/BuildingBlocks.Application.Abstractions/"] COPY ["BuildingBlocks/src/BuildingBlocks.Domain/BuildingBlocks.Domain.csproj", "BuildingBlocks/src/BuildingBlocks.Domain/"] @@ -31,4 +32,4 @@ RUN dotnet publish /property:UseAppHost=false /property:WarningLevel=0 --configu FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Tokens.Jobs.SanityCheck.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Tokens.Jobs.SanityCheck.dll"]