Skip to content

Commit 2ad1496

Browse files
committed
perf(Dockerfile): optimize build process with parallel jobs
* Use `make --jobs=$(nproc)` for faster builds of nghttp3, ngtcp2, and curl. * Improves build efficiency by utilizing available CPU cores.
1 parent fdc36f6 commit 2ad1496

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN git clone -b $NGHTTP3_VERSION https://github.com/ngtcp2/nghttp3 && \
2222
git submodule update --init && \
2323
autoreconf -fi && \
2424
./configure --prefix=/usr/local --enable-lib-only && \
25-
make && \
25+
make --jobs=$(nproc) && \
2626
make install
2727

2828
# Build ngtcp2 (with system OpenSSL 3.5+)
@@ -31,7 +31,7 @@ RUN git clone -b $NGTCP2_VERSION https://github.com/ngtcp2/ngtcp2 && \
3131
autoreconf -fi && \
3232
./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
3333
--prefix=/usr/local --enable-lib-only --with-openssl && \
34-
make && \
34+
make --jobs=$(nproc) && \
3535
make install
3636

3737
# Build curl with HTTP/3 (ngtcp2 + nghttp3) + HTTP/2 (nghttp2) + TLS (OpenSSL)
@@ -41,7 +41,7 @@ RUN git clone https://github.com/curl/curl && \
4141
autoreconf -fi && \
4242
./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
4343
--with-openssl --with-nghttp3 --with-ngtcp2 --with-nghttp2 --with-zlib && \
44-
make && \
44+
make --jobs=$(nproc) && \
4545
make install
4646

4747

0 commit comments

Comments
 (0)