Skip to content

Commit

Permalink
enable parallel build when building modules
Browse files Browse the repository at this point in the history
  • Loading branch information
fichte committed Feb 1, 2025
1 parent 6d33b18 commit c6f58d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN set -eux; \
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \
./build.sh; \
./configure --with-yajl --with-ssdeep --with-pcre2 --with-maxmind --enable-silent-rules; \
make install; \
make -j$(nproc) install; \
strip /usr/local/modsecurity/lib/lib*.so*

# Build modules
Expand All @@ -74,7 +74,7 @@ RUN set -eux; \
tar -xzf nginx-${NGINX_VERSION}.tar.gz; \
cd ./nginx-${NGINX_VERSION}; \
./configure --with-compat ${modules}; \
make modules; \
make -j$(nproc) modules; \
strip objs/*.so; \
cp objs/*.so /etc/nginx/modules/; \
mkdir /etc/modsecurity.d; \
Expand Down
4 changes: 2 additions & 2 deletions nginx/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN set -eux; \
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \
./build.sh; \
./configure --with-yajl --with-ssdeep --with-lmdb --with-pcre2 --with-maxmind --enable-silent-rules; \
make install; \
make -j$(nproc) install; \
strip /usr/local/modsecurity/lib/lib*.so*

# Build modules
Expand All @@ -70,7 +70,7 @@ RUN set -eux; \
tar -xzf nginx-${NGINX_VERSION}.tar.gz; \
cd ./nginx-${NGINX_VERSION}; \
./configure --with-compat ${modules}; \
make modules; \
make -j$(nproc) modules; \
strip objs/*.so; \
cp objs/*.so /etc/nginx/modules/; \
mkdir /etc/modsecurity.d; \
Expand Down

0 comments on commit c6f58d6

Please sign in to comment.