Skip to content

Commit e117bd8

Browse files
mattrobenoltthresheek
authored andcommitted
Use all cores when compiling
Signed-off-by: Konstantin Pavlov <[email protected]>
1 parent 677b73d commit e117bd8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mainline/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
7676
&& rm nginx.tar.gz \
7777
&& cd /usr/src/nginx-$NGINX_VERSION \
7878
&& ./configure $CONFIG --with-debug \
79-
&& make \
79+
&& make -j$(getconf _NPROCESSORS_ONLN) \
8080
&& mv objs/nginx objs/nginx-debug \
8181
&& mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so \
8282
&& mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so \
8383
&& mv objs/ngx_http_geoip_module.so objs/ngx_http_geoip_module-debug.so \
8484
&& mv objs/ngx_http_perl_module.so objs/ngx_http_perl_module-debug.so \
8585
&& mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so \
8686
&& ./configure $CONFIG \
87-
&& make \
87+
&& make -j$(getconf _NPROCESSORS_ONLN) \
8888
&& make install \
8989
&& rm -rf /etc/nginx/html/ \
9090
&& mkdir /etc/nginx/conf.d/ \

stable/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
7575
&& rm nginx.tar.gz \
7676
&& cd /usr/src/nginx-$NGINX_VERSION \
7777
&& ./configure $CONFIG --with-debug \
78-
&& make \
78+
&& make -j$(getconf _NPROCESSORS_ONLN) \
7979
&& mv objs/nginx objs/nginx-debug \
8080
&& mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so \
8181
&& mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so \
8282
&& mv objs/ngx_http_geoip_module.so objs/ngx_http_geoip_module-debug.so \
8383
&& mv objs/ngx_http_perl_module.so objs/ngx_http_perl_module-debug.so \
8484
&& ./configure $CONFIG \
85-
&& make \
85+
&& make -j$(getconf _NPROCESSORS_ONLN) \
8686
&& make install \
8787
&& rm -rf /etc/nginx/html/ \
8888
&& mkdir /etc/nginx/conf.d/ \

0 commit comments

Comments
 (0)