diff --git a/Dockerfile b/Dockerfile index aa57c4c015dad..717b8a0e9d170 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,8 +51,10 @@ RUN set -eu; \ fi; \ \ for plugin in $PLUGINS_BUNDLED; do \ - dotnet publish "$plugin" -c "$CONFIGURATION" -o "out/plugins/$plugin" -p:ASFVariant=docker -p:ContinuousIntegrationBuild=true -p:UseAppHost=false -r "$asf_variant" --nologo --no-self-contained; \ - done + dotnet publish "$plugin" -c "$CONFIGURATION" -o "out/plugins/$plugin" -p:ASFVariant=docker -p:ContinuousIntegrationBuild=true -p:UseAppHost=false -r "$asf_variant" --no-restore --nologo & ; \ + done; \ + \ + wait FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0${IMAGESUFFIX} AS runtime ENV ASF_PATH /app diff --git a/Dockerfile.Service b/Dockerfile.Service index 6e7a57be0fa65..0147d37da600e 100644 --- a/Dockerfile.Service +++ b/Dockerfile.Service @@ -51,8 +51,10 @@ RUN set -eu; \ fi; \ \ for plugin in $PLUGINS_BUNDLED; do \ - dotnet publish "$plugin" -c "$CONFIGURATION" -o "out/plugins/$plugin" "-p:ASFVariant=${asf_variant}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false -r "$asf_variant" --nologo --no-self-contained; \ - done + dotnet publish "$plugin" -c "$CONFIGURATION" -o "out/plugins/$plugin" "-p:ASFVariant=${asf_variant}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false -r "$asf_variant" --no-restore --nologo & ; \ + done; \ + \ + wait FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/runtime-deps:8.0${IMAGESUFFIX} AS runtime ENV ASF_PATH /app