diff --git a/docker/python-base/Dockerfile b/docker/python-base/Dockerfile
index 7a47191017..01c720a10d 100644
--- a/docker/python-base/Dockerfile
+++ b/docker/python-base/Dockerfile
@@ -23,7 +23,8 @@ RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommen
 RUN apt-get update \
   && apt-get install -y dumb-init \
   && apt-get clean \
-  && rm -rf /var/lib/apt/lists/*
+  && rm -rf /var/lib/apt/lists/* \
+  && echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list
 
 # Upgrade pip to fix wheel cache for locally built wheels.
 # See https://github.com/pypa/pip/issues/6852
diff --git a/docker/python-builder/Dockerfile b/docker/python-builder/Dockerfile
index 61b6e5e2af..d31dabfa5d 100644
--- a/docker/python-builder/Dockerfile
+++ b/docker/python-builder/Dockerfile
@@ -36,7 +36,8 @@ COPY scripts/install-from-bindep /output/install-from-bindep
 RUN dpkg -i /tmp/python3-dev_4.0.0_all.deb \
   && rm /tmp/python3-dev_4.0.0_all.deb \
   && pip install --no-cache-dir bindep \
-  && rm -rf /var/lib/apt/lists/*
+  && rm -rf /var/lib/apt/lists/* \
+  && echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list
 
 # Upgrade pip to fix wheel cache for locally built wheels
 # See https://github.com/pypa/pip/issues/6852
diff --git a/docker/uwsgi-base/bindep.txt b/docker/uwsgi-base/bindep.txt
index 670f7d05a7..db53d4bea3 100644
--- a/docker/uwsgi-base/bindep.txt
+++ b/docker/uwsgi-base/bindep.txt
@@ -1,5 +1,5 @@
 gcc [compile]
 libc6-dev [compile]
 libffi-dev [compile platform:dpkg]
-libffi6 [platform:dpkg]
+libffi7 [platform:dpkg]
 libssl-dev [compile platform:dpkg]