diff --git a/stx-init-env b/stx-init-env index 521ff089e..22c114b0c 100755 --- a/stx-init-env +++ b/stx-init-env @@ -90,6 +90,8 @@ STX_START_OPTS= # It doesn't need to track the build target (e.g. bullseye/trixie) COREUTILS_DOCKER_IMAGE="debian:bookworm-20240130-slim" +export DOCKER_BUILDKIT=1 + info() { local tty_on tty_off if [[ -t 2 ]] ; then @@ -1002,7 +1004,7 @@ if [[ -n "${BUILD_DOCKER_IMAGES}" ]] ; then info "Starting to build image: $img:$DOCKER_TAG_LOCAL-${builder_os_codename}" # Build command base - cmd="docker build ${docker_build_args[@]} ${extra_build_args[@]}" + cmd="docker buildx build ${docker_build_args[@]} ${extra_build_args[@]}" # Add dedicated build context ONLY for stx-lat-tool (regardless of cache status) # We always pass --build-context (even if empty) to keep Dockerfile compatible diff --git a/stx/debian/bullseye/dockerfiles/stx-lat-tool.Dockerfile b/stx/debian/bullseye/dockerfiles/stx-lat-tool.Dockerfile index fe7e70171..4ba0f78c4 100644 --- a/stx/debian/bullseye/dockerfiles/stx-lat-tool.Dockerfile +++ b/stx/debian/bullseye/dockerfiles/stx-lat-tool.Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1 +# syntax=docker/dockerfile:1.4 # Copyright (c) 2021,2025 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/stx/debian/trixie/dockerfiles/stx-lat-tool.Dockerfile b/stx/debian/trixie/dockerfiles/stx-lat-tool.Dockerfile index a12d5b323..3b9212a89 100644 --- a/stx/debian/trixie/dockerfiles/stx-lat-tool.Dockerfile +++ b/stx/debian/trixie/dockerfiles/stx-lat-tool.Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1 +# syntax=docker/dockerfile:1.4 # Copyright (c) 2021 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License");