diff --git a/build.sh b/build.sh index ea845abd163..ccf6a34b080 100755 --- a/build.sh +++ b/build.sh @@ -311,7 +311,7 @@ do } > Dockerfile # Include the ruby gemspec for preinstallation. # shellcheck disable=SC2086 - tar -cf- Dockerfile $DOCKER_EXTRA_CONTEXT | docker build $DOCKER_BUILD_XTRA_ARGS -t "$DOCKER_IMAGE_NAME" - + tar -cf- Dockerfile $DOCKER_EXTRA_CONTEXT | DOCKER_BUILDKIT=1 docker build $DOCKER_BUILD_XTRA_ARGS -t "$DOCKER_IMAGE_NAME" - rm Dockerfile # By mapping the .m2 directory you can do an mvn install from # within the container and use the result on your normal