From 767f4a3846b1ca20579a1ccd4827a5faeb8b0694 Mon Sep 17 00:00:00 2001 From: Michiel Hazelhof Date: Thu, 16 Oct 2025 11:19:29 +0200 Subject: [PATCH] Enable buildkit --- build.ps1 | 4 ++++ build.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/build.ps1 b/build.ps1 index 5b2bb3a..2214c2d 100644 --- a/build.ps1 +++ b/build.ps1 @@ -4,6 +4,10 @@ $PSNativeCommandUseErrorActionPreference = $true # detect buildx, ErrorActionPreference will ensure the script stops execution if not found docker buildx version +# Enable BuildKit for better build experience and to ensure platform args are populated +$env:DOCKER_BUILDKIT=1 +$env:COMPOSE_DOCKER_CLI_BUILD=1 + # define temporary directory $tempdirectory = "$pwd\temp" # define services to patch diff --git a/build.sh b/build.sh index 0b7938d..e258a89 100755 --- a/build.sh +++ b/build.sh @@ -4,6 +4,10 @@ set -e # detect buildx, set -e will ensure the script stops execution if not found docker buildx version +# Enable BuildKit for better build experience and to ensure platform args are populated +export DOCKER_BUILDKIT=1 +export COMPOSE_DOCKER_CLI_BUILD=1 + # define temporary directory TEMPDIRECTORY="$PWD/temp"