diff --git a/docker/Dockerfile b/docker/Dockerfile
index 1fbb04dd0cb4647fba76268f1da08401b9983dc8..0665042eae10ca6cb4adcfe8788b1091a70271e0 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -51,7 +51,7 @@ WORKDIR /app/alphafold
 RUN pip3 install -r dev-requirements.txt
 RUN pip3 install --no-deps .
 # Build chemical components database (this binary was installed by pip).
-RUN build_data
+RUN build_data --threads=2 --memory-limit=4G
 
 # To work around a known XLA issue causing the compilation time to greatly
 # increase, the following environment variable setting XLA flags must be enabled