limit make jobs

This commit is contained in:
Dmitry Belyaev 2020-08-16 16:34:51 +03:00
parent ebe487186b
commit e36539188f
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ RUN set -x && \
RUN set -x && \
cd /tmp/build && \
make -j $(grep -cs ^processor /proc/cpuinfo) && \
nproc=$(n=$(nproc) ; max_n=6 ; [ $n -le $max_n ] && echo $n || echo $max_n) && \
make -j $nproc && \
make install
RUN sed -i '1s;^;include /etc/squid/conf.d/*.conf\n;' /etc/squid/squid.conf