diff --git a/bin/docker-image-tool.sh b/bin/docker-image-tool.sh index 65b0f8d88986c..a137a2fba52ee 100755 --- a/bin/docker-image-tool.sh +++ b/bin/docker-image-tool.sh @@ -181,7 +181,7 @@ function build { error "Failed to build Spark JVM Docker image, please refer to Docker build output for details." fi if [ "${CROSS_BUILD}" != "false" ]; then - (cd $(img_ctx_dir base) && docker buildx build $ARCHS $NOCACHEARG "${BUILD_ARGS[@]}" --push \ + (cd $(img_ctx_dir base) && docker buildx build $ARCHS $NOCACHEARG "${BUILD_ARGS[@]}" --push --provenance=false \ -t $(image_ref spark) \ -f "$BASEDOCKERFILE" .) fi @@ -194,7 +194,7 @@ function build { error "Failed to build PySpark Docker image, please refer to Docker build output for details." fi if [ "${CROSS_BUILD}" != "false" ]; then - (cd $(img_ctx_dir pyspark) && docker buildx build $ARCHS $NOCACHEARG "${BINDING_BUILD_ARGS[@]}" --push \ + (cd $(img_ctx_dir pyspark) && docker buildx build $ARCHS $NOCACHEARG "${BINDING_BUILD_ARGS[@]}" --push --provenance=false \ -t $(image_ref spark-py) \ -f "$PYDOCKERFILE" .) fi @@ -208,7 +208,7 @@ function build { error "Failed to build SparkR Docker image, please refer to Docker build output for details." fi if [ "${CROSS_BUILD}" != "false" ]; then - (cd $(img_ctx_dir sparkr) && docker buildx build $ARCHS $NOCACHEARG "${BINDING_BUILD_ARGS[@]}" --push \ + (cd $(img_ctx_dir sparkr) && docker buildx build $ARCHS $NOCACHEARG "${BINDING_BUILD_ARGS[@]}" --push --provenance=false \ -t $(image_ref spark-r) \ -f "$RDOCKERFILE" .) fi