From b458c685d4e1c4b821bf69b2731bc5fbb37b5248 Mon Sep 17 00:00:00 2001
From: Raju Palagummi <raju.palagummi@gmail.com>
Date: Tue, 3 Sep 2024 21:52:41 -0700
Subject: [PATCH] Workaround fix for docker bloaty issue #35364

---
 integrations/docker/images/chip-cert-bins/Dockerfile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/integrations/docker/images/chip-cert-bins/Dockerfile b/integrations/docker/images/chip-cert-bins/Dockerfile
index b8a1b1f6022af2..32d362954be55a 100644
--- a/integrations/docker/images/chip-cert-bins/Dockerfile
+++ b/integrations/docker/images/chip-cert-bins/Dockerfile
@@ -140,7 +140,13 @@ RUN set -x \
     && cd .. \
     && rm -rf gn \
     && : # last line
-
+#TODO Issue #35280: this is only added as a workaround to bloaty build failures, remove it once bloaty fixes issue
+# Clone and install abseil-cpp
+RUN git clone https://github.com/abseil/abseil-cpp.git /tmp/abseil-cpp \
+    && cd /tmp/abseil-cpp \
+    && cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
+    && cmake --build build --target install \
+    && rm -rf /tmp/abseil-cpp
 # Install bloat comparison tools
 RUN set -x \
     && git clone https://github.com/google/bloaty.git \