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"