aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-11-02 10:26:45 +0000
committersaturneric <[email protected]>2025-11-02 10:26:45 +0000
commit579268ae287abbba2bc66b86567f0fd817898fb0 (patch)
tree3454939ea17a052ae421391e6b75b03f9bec51c3
parentrefactor(docker): improve build and runtime layers (diff)
downloadcgit-579268ae287abbba2bc66b86567f0fd817898fb0.tar.gz
cgit-579268ae287abbba2bc66b86567f0fd817898fb0.zip
perf(docker): parallelize build with `make -j`
* Enable multi-core compilation to reduce build times during Docker image creation. * Improves efficiency, especially on systems with multiple CPUs.
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 9e5aecf..84b9454 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,7 +11,7 @@ RUN apk --no-cache add libc-dev git gcc make \
openssl-dev libzip lua5.4-dev zlib-dev \
musl-libintl gettext-static
-RUN make NO_REGEX=NeedsStartEnd LUA_PKGCONFIG=lua5.4 install
+RUN make NO_REGEX=NeedsStartEnd LUA_PKGCONFIG=lua5.4 -j$(nproc) install
FROM alpine:latest AS runtime