diff --git a/docker/build.sh b/docker/build.sh
index 3543435ce48e42621cdf0eeadba90159779a06f6..b51db2343859a0e46d821930dbd90c152a819895 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -78,7 +78,14 @@ a2ensite ${APACHE_SITES}
 # The file is named 00modsecurity.conf so it is loaded first.
 mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/00modsecurity.conf
 
+# Patch the /etc/modsecurity/00modsecurity.conf file shipped
+# with the packages because it fails with a SyntaxError as
+# soon as it sees the first SecAuditLog directive.
+sed -e 's,^SecAuditLog .*$,SecAuditLog /dev/null,' -i \
+    /etc/modsecurity/00modsecurity.conf
+
 # This needs to be writable for mod security to be able to start.
+# Useless because the float container is read-only anyway.
 install -d -m 1777 /var/log/apache2
 
 # Ensure that the mount points exist.