diff --git a/bitwarden_license/src/Scim/Dockerfile b/bitwarden_license/src/Scim/Dockerfile index b31336b25b..87cfe9cca5 100644 --- a/bitwarden_license/src/Scim/Dockerfile +++ b/bitwarden_license/src/Scim/Dockerfile @@ -9,11 +9,11 @@ ARG TARGETPLATFORM # Determine proper runtime value for .NET # We put the value in a file to be read by later layers. RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ - RID=linux-x64 ; \ + RID=linux-x64 ; \ elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ - RID=linux-arm64 ; \ + RID=linux-arm64 ; \ elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \ - RID=linux-arm ; \ + RID=linux-arm ; \ fi \ && echo "RID=$RID" > /tmp/rid.txt @@ -31,6 +31,8 @@ COPY Directory.Build.props . WORKDIR /source/bitwarden_license/src/Scim RUN . /tmp/rid.txt && dotnet restore -r $RID +WORKDIR /source/bitwarden_license/src/Scim + # Copy required project files WORKDIR /source COPY .editorconfig /source @@ -39,6 +41,7 @@ COPY src/Core/. ./src/Core/ COPY src/Infrastructure.Dapper/. ./src/Infrastructure.Dapper/ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ +COPY .git/. ./.git/ # Build project WORKDIR /source/bitwarden_license/src/Scim diff --git a/bitwarden_license/src/Sso/Dockerfile b/bitwarden_license/src/Sso/Dockerfile index 568c8ccbe1..b5ff0dfab1 100644 --- a/bitwarden_license/src/Sso/Dockerfile +++ b/bitwarden_license/src/Sso/Dockerfile @@ -31,6 +31,8 @@ COPY Directory.Build.props . WORKDIR /source/bitwarden_license/src/Sso RUN . /tmp/rid.txt && dotnet restore -r $RID +WORKDIR /source/bitwarden_license/src/Sso + # Copy required project files WORKDIR /source COPY .editorconfig /source @@ -39,6 +41,7 @@ COPY src/Core/. ./src/Core/ COPY src/Infrastructure.Dapper/. ./src/Infrastructure.Dapper/ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ +COPY .git/. ./.git/ # Build project WORKDIR /source/bitwarden_license/src/Sso diff --git a/src/Admin/Dockerfile b/src/Admin/Dockerfile index 0919f7bb1f..f2810c6c81 100644 --- a/src/Admin/Dockerfile +++ b/src/Admin/Dockerfile @@ -62,6 +62,7 @@ COPY util/SqliteMigrations/. ./util/SqliteMigrations/ COPY util/EfShared/. ./util/EfShared/ COPY bitwarden_license/src/Commercial.Core/. ./bitwarden_license/src/Commercial.Core/ COPY bitwarden_license/src/Commercial.Infrastructure.EntityFramework/. ./bitwarden_license/src/Commercial.Infrastructure.EntityFramework/ +COPY .git/. ./.git/ COPY .editorconfig /source # Build project diff --git a/src/Api/Dockerfile b/src/Api/Dockerfile index 0c6959c7ce..6e3ab0e444 100644 --- a/src/Api/Dockerfile +++ b/src/Api/Dockerfile @@ -42,6 +42,7 @@ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ COPY bitwarden_license/src/Commercial.Core/. ./bitwarden_license/src/Commercial.Core/ COPY bitwarden_license/src/Commercial.Infrastructure.EntityFramework/. ./bitwarden_license/src/Commercial.Infrastructure.EntityFramework/ +COPY .git/. ./.git/ COPY .editorconfig /source # Build project diff --git a/src/Billing/Dockerfile b/src/Billing/Dockerfile index 5b5ac396c5..d3e4939a44 100644 --- a/src/Billing/Dockerfile +++ b/src/Billing/Dockerfile @@ -38,6 +38,7 @@ COPY src/Core/. ./src/Core/ COPY src/Infrastructure.Dapper/. ./src/Infrastructure.Dapper/ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ +COPY .git/. ./.git/ COPY .editorconfig . # Build project diff --git a/src/Events/Dockerfile b/src/Events/Dockerfile index a745673e2b..7fd406eeae 100644 --- a/src/Events/Dockerfile +++ b/src/Events/Dockerfile @@ -38,6 +38,7 @@ COPY src/Core/. ./src/Core/ COPY src/Infrastructure.Dapper/. ./src/Infrastructure.Dapper/ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ +COPY .git/. ./.git/ COPY .editorconfig /source # Build project diff --git a/src/EventsProcessor/Dockerfile b/src/EventsProcessor/Dockerfile index d66c1bf999..4e9c23ac11 100644 --- a/src/EventsProcessor/Dockerfile +++ b/src/EventsProcessor/Dockerfile @@ -39,6 +39,7 @@ COPY src/Core/. ./src/Core/ COPY src/Infrastructure.Dapper/. ./src/Infrastructure.Dapper/ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ +COPY .git/. ./.git/ COPY .editorconfig /source # Build project diff --git a/src/Icons/Dockerfile b/src/Icons/Dockerfile index d387d34ee1..8b78b8d1f6 100644 --- a/src/Icons/Dockerfile +++ b/src/Icons/Dockerfile @@ -37,6 +37,7 @@ COPY src/Core/. ./src/Core/ COPY src/Infrastructure.Dapper/. ./src/Infrastructure.Dapper/ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ +COPY .git/. ./.git/ COPY .editorconfig /source # Build project diff --git a/src/Identity/Dockerfile b/src/Identity/Dockerfile index f4f76df752..e15c55671a 100644 --- a/src/Identity/Dockerfile +++ b/src/Identity/Dockerfile @@ -38,6 +38,7 @@ COPY src/Core/. ./src/Core/ COPY src/Infrastructure.Dapper/. ./src/Infrastructure.Dapper/ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ +COPY .git/. ./.git/ COPY .editorconfig /source # Build project diff --git a/src/Notifications/Dockerfile b/src/Notifications/Dockerfile index a588d81a4c..e3d0327cee 100644 --- a/src/Notifications/Dockerfile +++ b/src/Notifications/Dockerfile @@ -38,6 +38,7 @@ COPY src/Core/. ./src/Core/ COPY src/Infrastructure.Dapper/. ./src/Infrastructure.Dapper/ COPY src/Infrastructure.EntityFramework/. ./src/Infrastructure.EntityFramework/ COPY src/SharedWeb/. ./src/SharedWeb/ +COPY .git/. ./.git/ COPY .editorconfig /source # Build project diff --git a/util/MsSqlMigratorUtility/Dockerfile b/util/MsSqlMigratorUtility/Dockerfile index 213364b6c4..edc202bc93 100644 --- a/util/MsSqlMigratorUtility/Dockerfile +++ b/util/MsSqlMigratorUtility/Dockerfile @@ -38,6 +38,7 @@ COPY util/MsSqlMigratorUtility/. ./util/MsSqlMigratorUtility/ COPY src/Core/. ./src/Core/ COPY util/Migrator/. ./util/Migrator/ COPY util/Server/. ./util/Server/ +COPY .git/. ./.git/ COPY .editorconfig /source # Build project