From 9692c089b4aef25d391fa13ac13e50d4e7cb9f6b Mon Sep 17 00:00:00 2001 From: "m.shvets" Date: Mon, 2 Mar 2026 09:08:55 +0300 Subject: [PATCH] optimize: parallelize build process in pdns_auth Dockerfile --- .docker/pdns_auth.Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.docker/pdns_auth.Dockerfile b/.docker/pdns_auth.Dockerfile index 6298932ff..695edc68a 100644 --- a/.docker/pdns_auth.Dockerfile +++ b/.docker/pdns_auth.Dockerfile @@ -36,11 +36,11 @@ RUN mkdir /build && \ --with-modules='' \ --with-unixodbc-lib=/usr/lib/$(dpkg-architecture -q DEB_BUILD_GNU_TYPE) && \ make clean && \ - make $MAKEFLAGS -C ext &&\ - make $MAKEFLAGS -C modules &&\ - make $MAKEFLAGS -C pdns && \ - make -C pdns install DESTDIR=/build &&\ - make -C modules install DESTDIR=/build &&\ + make -j$(($(nproc) / 2)) -C ext &&\ + make -j$(($(nproc) / 2)) -C modules &&\ + make -j$(($(nproc) / 2)) -C pdns && \ + make -j$(($(nproc) / 2)) -C pdns install DESTDIR=/build &&\ + make -j$(($(nproc) / 2)) -C modules install DESTDIR=/build &&\ make clean && \ strip /build/usr/local/bin/* /build/usr/local/sbin/* /build/usr/local/lib/pdns/*.so