diff --git a/container.def b/container.def
index e48cc37b0c2c203a8e664f1719a0c914d58ca82d..a8ebc7bdec51ed45a64e0a49ad5e339403fd3c3b 100644
--- a/container.def
+++ b/container.def
@@ -9,15 +9,6 @@ From: nvidia/cuda:12.1.0-cudnn8-devel-ubuntu20.04
         wget sshfs rsync curl vim bzip2 zip unzip git build-essential cmake \
         libopenblas-dev 
 
-    # Fix libffi version: remove libffi8 if present, enforce libffi7
-    apt-get remove -y libffi8 || true
-    apt-get install -y libffi7=3.3-4
-
-    # Verify runtime linking
-    ldconfig
-    echo "Checking git-remote-https linking to libffi:"
-    ldd /usr/lib/git-core/git-remote-https | grep ffi || true
-
     apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* # keep the Docker image as small as possible.
     
 %environment