diff --git a/Dockerfile.bullseye b/Dockerfile.bullseye
index 7fb8cfdb3ff776a8b40a88d90f160c8f81a9ff17..30a6735952d6e625b01e21544f19c0aa46140fa5 100644
--- a/Dockerfile.bullseye
+++ b/Dockerfile.bullseye
@@ -7,7 +7,7 @@ RUN apt-get -qq update && \
         sqlite3 locales-all git \
         python3 python3-venv python3-coverage python3-ldap3 python3-flask python3-flask-sqlalchemy python3-flask-migrate \
         python3-pip python3-qrcode python3-fido2 python3-oauthlib python3-flask-babel python3-pytest python3-all python3-pip \
-        git-buildpackage debhelper dh-python && \
+        git-buildpackage debhelper dh-python mariadb-server && \
     pip3 install pylint html5validator twine build --upgrade && \
     apt-get -qq clean
 
diff --git a/Dockerfile.buster b/Dockerfile.buster
index 21b494e9f9aa4857aa77f28d3182dcd20d436d07..2f8a4f5f4b25fc2d637412483b46f006eb40e010 100644
--- a/Dockerfile.buster
+++ b/Dockerfile.buster
@@ -7,7 +7,7 @@ RUN apt-get -qq update && \
         sqlite3 locales-all git \
         python3 python3-venv python3-coverage python3-ldap3 python3-flask python3-flask-sqlalchemy python3-flask-migrate \
         python3-pip python3-qrcode python3-fido2 python3-oauthlib python3-flask-babel python3-pytest python3-all python3-pip \
-        git-buildpackage debhelper dh-python && \
+        git-buildpackage debhelper dh-python mariadb-server && \
     pip3 install pylint html5validator twine build --upgrade && \
     apt-get -qq clean