Skip to content

Commit 11a3666

Browse files
committed
Compile faster by using all available CPU resources
1 parent 10965fc commit 11a3666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ RUN \
7676
RUN \
7777
cd /tmp/build/nginx/nginx-${NGINX_VERSION} && \
7878
# Start compiling and installing.
79-
make build && \
79+
make -j$(nproc) build && \
8080
make modules && \
8181
make install
8282

@@ -119,6 +119,6 @@ RUN \
119119
RUN \
120120
cd /tmp/build/php/php-${PHP_VERSION} && \
121121
# Compile, test and install.
122-
make build && \
122+
make -j$(nproc) build && \
123123
make test && \
124124
make install

0 commit comments

Comments
 (0)